Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1298230
    VerbalJames
    Participant

    Hi 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,
    Greg

    #1298240
    Joao
    Moderator

    Thanks 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.

    #1298245
    VerbalJames
    Participant

    Thanks 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,
    Greg

    #1298303
    Nabeel A
    Moderator

    Hey 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!

    #1298322
    VerbalJames
    Participant

    Hi there,
    Tried that but am afraid it didn’t work.
    best,
    Greg

    #1298345
    Joao
    Moderator

    Hi 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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    Joao

    #1299213
    VerbalJames
    Participant
    This reply has been marked as private.
    #1299216
    Christopher
    Moderator

    Hi there,

    There were two missing curly bracket in your code. I fixed them and custom code started to work .

    Hope it helps.

    #1299241
    VerbalJames
    Participant

    That’s brilliant! Thanks for all your help. I’m not a coding professional so really appreciate it.
    best,
    Greg

    #1299246
    Thai
    Moderator

    If you need anything else please let us know.

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