• Resolved rierieh

    (@rierieh)


    Hello,
    I am using the Virtue theme with polylang plugin and when I click on the logo, I reach a home page with no menu and posts in both langagues I set in the plugin. Is it possible to have a non-clikable logo? How can I do this?

    Thank you for your help,
    Rie

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 ??

    Thread Starter rierieh

    (@rierieh)

    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!

    Thread Starter rierieh

    (@rierieh)

    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 ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to disable logo link’ is closed to new replies.