[Resolved] top bar different on one page

Home Forums Support [Resolved] top bar different on one page

Home Forums Support top bar different on one page

  • This topic has 3 replies, 2 voices, and was last updated 5 years ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #853553
    BeeLady11

    Hi
    I have a site with a top bar I am happy with.
    I would like a different top bar on just one page. I have searched forums, etc. but none of them really cover this.
    I have even been into the new Elements option on GP but I just cannot see how to do it.
    It’s the /guildford-locksmith/ page I would like the different header on (as he has different contact details to his boss)

    Any help would be appreciated.

    Thanks

    #853586
    David
    Staff
    Customer Support

    Hi there,

    as theres only two numbers may be easier to just include both of them in the same widget and then use some CSS to hide them accordingly.

    So edit the widget with the phone numbers and just add the two numbers like so:

    <a style="vertical-align:top;" class="main-phone" href="tel:0000000000"> 00000 000 000 /a>
    <a style="vertical-align:top;" class="guildford-phone" href="tel:11111111111"> 11111 111 111</a>

    Then this CSS – should hide guildford on all other pages, and the main number on the guilford page:

    body:not(.page-id-310) .guildford-phone {
        display: none;
    }
    .page-id-310 .main-phone {
        display: none;
    }
    #854128
    BeeLady11

    That worked beautifully!
    Thankyou so much
    A 🙂

    #854131
    David
    Staff
    Customer Support

    Awesome – glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.