Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1087094
    GDBE
    Participant

    Hi there, I would like to use an alternate logo for the blog page only. I have tried custom css using the page ID and that did not work. I also tried a custom _brand.php page using this code here: `if(is_blog()) {
    $site_logo = ‘<img src=”http://ashlandhealthrx.com/wp-content/uploads/2016/07/TBR-LOGO.png&#8221; alt=””>’;
    }`

    and it threw an error, I guess it doesn’t like the is_blog statement?
    Any ideas?

    Thank you!

    #1087095
    GDBE
    Participant
    This reply has been marked as private.
    #1087438
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Please add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript

    jQuery(document).ready(function($){
    	$(".blog .x-brand img").attr("src", "http://ashlandhealthrx.com/wp-content/uploads/2016/07/TBR-LOGO.png");
    });

    Change the image URL in the above code. Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!

    #1088543
    GDBE
    Participant

    Got it to work. I did the change yesterday. Is there a way instead of doing this, to replace the navigation text for the blog with the logo?

    Thank you!

    #1088982
    Nabeel A
    Moderator

    Hi again,

    Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

  • <script> jQuery(function($){ $("#no-reply-1087094 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>