I would like a logo image (150x150) to be a link, instead of homepage button.
Can you give me an advice on custom CSS?
You can achieve that hardcoding the link. Open the logo.php file and replace <?php echo $homeUrl ?> (see screenshot) with your custom link. Btw I'd recommend that you make that change on the child theme so you are not going to lose it on next theme update.
Attached files: Screen Shot 2017-03-15 at 9.29.34 AM.png
Hello, thanks for reply.
I found the logo.php and <?php echo $homeUrl ?> there. Changed to http://mydomain.com/ and nothing happened. Only the button stopped working. In the links you sent me are only manuals how to make a child theme. Nothing about the problem. Can you advice me a little bit further? Here is the logo.php. How should we change it in order to make the logo a link to a different website?
if ( is_front_page() ) :
$homeUrl = home_url( '/#start' );
$homeUrl = home_url( '/' );
<a href="<?php echo $homeUrl ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" >
<h1><?php bloginfo( 'name' ); ?></h1>
Here's an example: https://codeshare.io/GApD6k
And, yes, those links shows you how to create a child theme. Once you do that, you can create a nav.php file inside the child theme and make changes in that file.