-
jeroenlaParticipant
Right now, the top left shows the title of the site. My friend wants this to show his logo. How can I replace this please?
Thanks for taking the time to answer.
KiwiaufzeitParticipantEasiest way: get into the header.php and replace the line before the end of the header with a picutre.
Meaning you would take out the whole part <<?php ech…$heading_tag; ?>> and replace it with something like that:
***code taken out and posted below***
Put the corresponding logo into the folder shown above and change the style to your liking.I’m sure there are “nicer” options out there as this one is quite “rude” but it should work and doesn’t require too much work.
- This reply was modified 10 years, 8 months ago by Kiwiaufzeit. Reason: code screwed up the post
KiwiaufzeitParticipantYeah, nvm. Forgot that code in a comment screws with the whole thing here:
<*img src=”/wp-content/themes/minimatica-child/logo.png” /*>
Take out the *
jeroenlaParticipantAwesome! I was on the right track π
So..
<header id=”header” role=”banner”>
<?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
<<?php echo $heading_tag; ?> id=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></<?php echo $heading_tag; ?>>Would become
<header id=”header” role=”banner”>
<?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
<*img src=β/wp-content/themes/minimatica-child/logo.pngβ /*>? (Without the stars)
jeroenlaParticipantWell…that didn’t work. Not only did the logo not show up (and I used the proper URL to where I had it uploaded), but it also moved something I had put into the footer to the top of the page *confused*
KiwiaufzeitParticipantWell, for me it works I have to say… http://www.fenweb.de/
- This reply was modified 10 years, 8 months ago by Kiwiaufzeit.
KiwiaufzeitParticipantWould you mind giving out the link to the blog so I can see it for myself?
(I just took a random image so far and I haven’t put any style on it yet so it looks kind of crappy)
- This reply was modified 10 years, 8 months ago by Kiwiaufzeit.
KiwiaufzeitParticipantOkay, then let’s do it differently… Replace <*?php bloginfo( ‘name’ ); ?*> with the image link <*img src=β/wp-content/themes/minimatica-child/logo.pngβ /*>. The line should end up looking like this:
***see below***
That way the logo is automatically positioned correctly and as long as the image source is correct there shouldn’t be any problems.
postscript: okay, I HATE the whole code in comment thing. Just use this link:
http://textuploader.com/1ul9
I uploaded the whole header.php-file and you can simply copy/paste.- This reply was modified 10 years, 8 months ago by Kiwiaufzeit.
- This reply was modified 10 years, 8 months ago by Kiwiaufzeit.
jeroenlaParticipantKiwi’s are awesome π
Yes! That bit worked πThanks a lot π
Looking great on http://www.sjapoo-maarheeze.nl
KiwiaufzeitParticipantAnytime, welcome.
Yeah, that does look pretty good π Hope everything works out then! Good luck for your friend with the new website
You must be logged in to reply to this topic.