• Tom

    Thanks, this worked pretty well. Only time it doesn’t work so great is on a mobile device. The logo doesn’t scale down enough and looks too big. I wonder if there’s a way to have two versions of the logo, one for desktop displays and one for mobile devices? Thanks!

  • Tom

    Also, the “Title” for each page now shows “” on the browser window instead of the name of my site.

  • Humaiun Morshed

    I having the same problem 🙁

  • Hey guys, thanks for the feedback! Iv’e seen the title tag issue only on the login page. Where else did you encounter this issue? Check the post update and modified code for the fix to the login page, and also for applying different sizes to the logo.

  • Caro

    Hey Yaniv,

    i did each step you described, but logo does not show up! does anyone has same problem?! I installed and activated plugin, c&p your code (with my img src) and saved snipped. then logo should simply show up?

    thats my URL:http://web1286.login-4.loginserver.ch/kino-zum-mitnehmen/

    Can you see whats the problem? Can you help?

    Kind regards.
    Caro

  • Hey Caro, in the Code Snippets plugin, did you click on the “Save Changes and Activate” button?

  • Caro

    Hey Yaniv,
    oh, yes! I forgot to activate it! oops. Sorry & thank for helping!
    Caro

  • No worries.. I think that the UI of adding a snippet is actually a bit confusing

  • Enrique Montecristo

    Hello, thank you for the solution, it’s really the simplest ones I tried. But is it possible to keep the “Site Title” text in addition to the logo?
    Best regards.

  • Hi Enrique, great to hear! Sure, check out update #2 that Iv’e added to this post.

  • Greg Crowe

    I am also having this problem.

  • Hi Greg, did you check update #2 in this post?

  • Stijn Verplancke

    Hi Yaniv, I’ve used the update #2 and still the “” appears, albeit àfter the site title…

  • Hi Stijn, I’m sorry to hear that. Do you encounter this issue all over the site, or only on specific pages? Try changing the following command – add_filter( ‘bloginfo’, ‘af_logo’, 10, 2 ); to add_filter( ‘bloginfo’, ‘af_logo’, 10000, 2 );

  • Josh Schramm

    I just tried this and it works great except it is showing <imag class='af-logo'… as the site title. I tried your different updates and it doesn't seem to help. It is showing it whether I am logged in or not. See: http://maplecountercafe.com/waffletruck/

  • moshjosh

    Even with the modified code you’ve placed here, my site title is showing as img class=”af-logo . . etc..

    Please help! This fix is ALMOST perfect!

  • Hi moshjosh, perhaps there is a plugin conflict even with my suggested fix – try deactivating your plugins and check if it works. Also, perhaps your theme doesn’t support this hack – try changing your theme to the Twenty Fifteen theme and check if it works.

  • Unfortunately, still experiencing the same issue after changing the command and deactivating the plugins. Can we just keep the output for the logo & title in the sidebar and not in the site’s ?

  • Tobias

    I’m seeing the same thing on every Page. They show the Page-Title and than <img class="af-logo" style=… and so on.
    Is there a way to fix this?

  • Tobias

    I used your hack with “showing the title” and it works perfect. The only quibble I have is, that I get to see instead of the title of the website… Is there a solution without removing the whole hack?

  • Hey guys, Iv’e created a fix for both PHP files. Sorry for the delay, and for some reason, having the Yoast SEO plugin solved this issue – I guess this is the reason why for some people the solution worked, and for some it didn’t.

    Let me know if everything is working well now. Thanks!

  • Tobias

    It works great! Thanks, man! 🙂

  • chrislowthian

    Is there a way to center the logo when viewing on mobile devices? When the menu moves to the top on narrow devices the logo goes to the left.

  • Hi chrislowthian,

    Sure, just add margin: 0 auto; to the rellevant af-logo class. Keep in mind to disable this CSS rule on the non relevant media queries.

  • Tomas Vilda

    This solution doesn’t work with wordpress 4.4 anymore.

  • Tomas Vilda

    This solution doesn’t work with wordpress 4.4 anymore.

    This fix solved problem on 4.4

    http://www.mergely.com/KXpEwlSP/

  • Tomas – thank you for your input! I am further going to look into this.issue.

  • Tyler Anderson

    With WordPress 4.4.1 the solution broke yet again. My front page was wrong but every other page was correct. For my fix I needed to change the solution to 1 != $GLOBALS[‘yf_bloginfo_count’]

  • Clark

    Hello, I am looking for some help, I am trying to place a picture in the top right of my page I am using twenty fifteen. This is the code that is not working, not sure why, it was earlier until I delete pictures in my media and forgot that one of the pics I deleted was one I was using for the header.. But this is what I copied out of the editor,

    ?>


    Not what happened.. I didn’t do anything other then copy and past the media url out of my media file in my wordpress blog.

    Thanks

  • Tomas Vilda

    Same, here, changing that value I get logo on all pages, except front page or logo on front page and no logo on other pages.

  • Hi Clark, I’m not sure I understood what you have done. May be you can outline the exact steps you’ve taken to apply my solution?

  • Hi Tomas, Iv’e installed a fresh WP + my snippet + Yoast SEO and the solution works fine for both the front page and posts (with the value of 1 == …). Maybe you have a conflicting plugin in place?

  • Tomas Vilda

    Are you using static front page?

  • No, I’m using the latest posts. Iv’e also tested using a static page and it doesn’t seem to matter.

  • Tomas Vilda

    Strange then. Turned all plugins off except Code snippet and the same problem persist on 4.4.1

  • Kris Caigas

    Hi Yaniv, nice work! But it seems that it is only working on the front page, anyway I could make this work on all pages?