Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1355545
    mriordan1978
    Participant

    Hi,

    I’m building a site. I have one page that I want a different logo on. I’m building it on a temporary domain, but I’m having an issue.

    I found this code on the forum:

    jQuery(“.page-id .x-brand img,.single-post .x-brand img”).attr(“src”,”http://www.mysite.com/uploads/logo.jpg”);

    I changed mine to jQuery(“.page-38 .x-brand img,.single-post. x-brand img”).attr(“src”,” http://7df.4a1.myftpupload.com/wp-content/uploads/2017/02/Realty-Professionals-Luxury-Homes_Small.png”);

    But it isn’t working. I want to change the logo on that one page: http://7df.4a1.myftpupload.com/luxury-properties/

    I put it in the general customizer in the java script. What am I doing incorrectly?

    #1355677
    Jade
    Moderator

    Hi there,

    This could should work fine when you add it in Custom JS:

    
    jQuery(".page-id-38 .x-brand img").attr("src","http://7df.4a1.myftpupload.com/wp-content/uploads/2017/02/Realty-Professionals-Luxury-Homes_Small.png");

    Hope this helps.

    #1357098
    mriordan1978
    Participant

    That did it! Thank you so much! I have no idea how I got that so wrong.

    #1357581
    Friech
    Moderator

    You almost got it actually, you just have this: .page-38 instead of this .page-id-38

    Glad we could help, Cheers!

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