[Resolved] Before Header Hook – mobile

Home Forums Support [Resolved] Before Header Hook – mobile

Home Forums Support Before Header Hook – mobile

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #215587
    Paul

    Hi,

    I’m using this snippet in the Before Header hook to create a top bar:

    <div class="above-header-bar">
        <div class="grid-container grid-parent">
            <div class="grid-100">
                Call us on:<a href="tel:1234567890"><span>1234567890</span></a>
            </div>
        </div>
    </div>

    I have Mobile Header enabled.
    While this is ok when testing the site responsively in Customizer, the div fails to show on a mobile.

    How can I correct this? I’m assuming some of those hooks can’t be used when Mobile Header is enabled?

    Thanks,
    Paul.

    #215603
    Tom
    Lead Developer
    Lead Developer

    The header is removed on mobile when mobile header is activated.

    However, if you’re placing this HTML in the “Before Header” hook, the mobile header shouldn’t remove it.

    Can you link me to the site?

    #215623
    Paul
    #215650
    Tom
    Lead Developer
    Lead Developer

    I can see the top bar on mobile – looks good?

    #215651
    Paul

    You’re right it’s there! Scratch this one, maybe the browser not refreshing properly on my phone.

    #215653
    Tom
    Lead Developer
    Lead Developer

    Cache can be a pain 🙂

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