Hello,
if you open up your sites’ Header.php file, somewhere between lines 60 – 80 (mine is 76) you should see a line looking something like this:
<a href="<?php echo get_option('home'); ?>"><img src="<?php echo $custom_logo; ?>" /></a><?php
remove the part with get_option(‘whatever your URL is’);
so you should have:
<img src="<?php echo $custom_logo; ?>" /><?php
this should work, has worked for me in the past 🙂
Thank you for your quick answer, but I could not find such a line in the Header.php file. Could I find it in an other place?
I just checked the header.php file again, on the parent theme of the Virtue template.
the line you’re looking for is 58, it looks like this:
<a class="brand logofont" href="<?php echo home_url(); ?>/">
just remove the href from it so it looks like this:
<a class="brand logofont">
and you will have a non-clickable logo
Also, maybe you might not be finding it because I have a plugin called
Advanced Code Editor, which enables you to view all the files and changes right from your Appearance > Editor section.
If you do not have it installed, I highly recommend it.
It’s a great took for things like this!
It is so nice of you to have checked the parent theme!
This time I found the line exactly where you said and I did not have to install the Advanced Code Editor plugin.
It perfectly worked and the logo is not clickable anymore.
Thank you very very much for your help 🙂