Bug: Custom Logo Header Link – Mantra

  • Author
  • #8207

    Good Day!

    Just started using Mantra on a new project & found a tiny bug. In the header, I am using a custom logo. The blog is not at the root directory (in the blog subdirectory). Everything looked fine until I clicked the logo and I ended up at the root…

    I took a looked in includes/theme-functions.php and on line 120, found:

    if (isset($mantra_logoupload) && ($mantra_logoupload != '')) : 
    echo '<div><a id="logo" href="/" ><img title="" alt="" 
    src="'.$mantra_logoupload.'" /></a></div>'; endif;

    which works fine if the web site is at the root. I saw in line 110 that the href value is derived correctly: href="'.esc_url( home_url( '/' ) ).'"

    I did the substitution in line 120 and it now works perfectly.

    If that follows your coding practice, feel free to use the fix! 🙂

    Thanks again for the great theme!


    Cryout Creations mastermind

    This was already spotted by another Mantra user and is fixed in

    Thanks anyway for pointing it out.

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Bug: Custom Logo Header Link – Mantra’ is closed to new replies.