Tagged: x
-
AuthorPosts
-
December 19, 2016 at 9:24 am #1298230
VerbalJamesParticipantHi there,
I’ve managed to figure out how to change to an alternative logo on a single page using:jQuery(“.page-id .x-brand img,.single-post .x-brand img”).attr(“src”,”http://www.mysite.com/uploads/logo.jpg”);
but when I resize the new logo to make it smaller the rest of the logos on other pages change size also. I was wondering if it’s possible to just change the new logo size on the one page without changing the size of the others? Thanks for your help.
best,
GregDecember 19, 2016 at 9:29 am #1298240
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
December 19, 2016 at 9:37 am #1298245
VerbalJamesParticipantThanks for getting back to me. The site url is mercuryred.co.uk and the page url is: http://www.mercuryred.co.uk/?page_id=797
thanks,
GregDecember 19, 2016 at 10:19 am #1298303
Nabeel AModeratorHey Greg,
Thank you for providing the URL. You can target the logo image with the Page ID for any specific page. For example you can add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:
.page-id-797 .x-brand img { width: 100% !important; }Let us know how this goes!
December 19, 2016 at 10:37 am #1298322
VerbalJamesParticipantHi there,
Tried that but am afraid it didn’t work.
best,
GregDecember 19, 2016 at 10:48 am #1298345
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
Joao
December 20, 2016 at 4:39 am #1299213
VerbalJamesParticipantThis reply has been marked as private.December 20, 2016 at 4:49 am #1299216
ChristopherModeratorHi there,
There were two missing curly bracket in your code. I fixed them and custom code started to work .
Hope it helps.
December 20, 2016 at 5:40 am #1299241
VerbalJamesParticipantThat’s brilliant! Thanks for all your help. I’m not a coding professional so really appreciate it.
best,
GregDecember 20, 2016 at 5:47 am #1299246
ThaiModeratorIf you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1298230 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
