Hello, I experimented with adding to add a CTA Button to mobile header according to these instructions and it worked great:
https://docs.generatepress.com/article/hooks-element-overview/
1. Create new Hook Element
2. Add your HTML for your button e.g
My CTA
3. In the Hook List select: inside_mobile_header
4. In Display Rules set this to the Entire Site and Publish.
5. In Customizer > Layout > Header activate Mobile Header and add your logo and Enable Sticky.
6. Then add this CSS which you can tweak the colors etc to suit:
#mobile-header .inside-navigation {
align-items: center;
}
a.custom-mobile-cta {
padding: 5px;
border: 1px solid #fff;
background-color: orange;
color: #000;
border-radius: 5px;
order: 4;
margin-right: 10px;
}
However, I don’t want to use the mobile header. I would like the button to show in the sticky menu. I do not see a hook for that. Is that possible?