Archived topic
Before Header Hook - mobile
5 replies · Started by Paul on August 4, 2016
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.
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?
I can see the top bar on mobile - looks good?
You're right it's there! Scratch this one, maybe the browser not refreshing properly on my phone.
Cache can be a pain :)