Archived topic
New Elements for Mobile Header
3 replies · Started by Daniel on October 15, 2018
Hi, I'm looking to create a different mobile header because I still want the phone number to display but it needs to be different to the desktop version. Can I do this? Thanks
Hi there,
Not sure what exactly you are going for but you can add content to the mobile header like this:
https://docs.generatepress.com/article/mobile-header/#adding-html-inside-the-mobile-header
The hook is actually included in the Hooks Elements:
https://docs.generatepress.com/article/hooks-element-overview/
Let me know if this helps :)
Hi, I tried this, but it just prints out the code:
https://www.dropbox.com/s/zi9ya60sx5dpedm/Screenshot%202018-10-15%2018.06.36.png?dl=0
Is that added through Hooks Elements?
Did you select the inside_mobile_header for the Hook field?
Then you can just add regular HTML in hooks content and skip all the function/filter stuff.