Tagged: x
-
AuthorPosts
-
February 2, 2017 at 12:50 pm #1355545
mriordan1978ParticipantHi,
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?
February 2, 2017 at 2:33 pm #1355677
JadeModeratorHi 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.
February 3, 2017 at 1:25 pm #1357098
mriordan1978ParticipantThat did it! Thank you so much! I have no idea how I got that so wrong.
February 3, 2017 at 9:28 pm #1357581
FriechModeratorYou almost got it actually, you just have this:
.page-38instead of this.page-id-38Glad we could help, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1355545 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
