- This topic has 7 replies, 2 voices, and was last updated 5 years ago by
David.
-
AuthorPosts
-
May 23, 2018 at 5:58 am #582569
Marcus
Hi,
I’m using the Zeal theme and have created a header template using Elementor, which I have published. However, it is not showing on the actual site and it’s still using the GP site header.
Is there a way to deactivate the default GP header and use the one I’ve created with Elementor instead?[UPDATE]
I was able to get the Elementor Header integrated via a shortcode in GP Hooks, but how can I remove the default header from the Zeal theme?Thanks,
MarcusMay 23, 2018 at 6:30 am #582590David
StaffCustomer SupportHi Marcus, you can disable the GP header from the WP Editor > Layout meta > Disable Elements or you can do this globally:
May 23, 2018 at 7:05 am #582609Marcus
Thanks David.
Sorry if I’m being a real simpleton here, but in which GP Hook section should I insert the code:
add_action( ‘after_setup_theme’,’tu_remove_header’ );
function tu_remove_header() {
remove_action( ‘generate_header’,’generate_construct_header’ );
}For your first approach, where is the WP Editor? I can’t find it nor the Layout Meta section…
Thank you again.
May 23, 2018 at 7:15 am #582611David
StaffCustomer SupportHi Marcus, not a problem you can add PHP various ways as described here. For simplicity i recommend the Code Snippets plugin option:
https://docs.generatepress.com/article/adding-php/
See here regarding the disable elements:
https://docs.generatepress.com/article/disable-elements-overview/
May 23, 2018 at 7:21 am #582618Marcus
Thanks David, very helpful!
One final question: Would you recommend to use the default Header from the GP theme or to use the Elementor Header template?
I find the latter more customisable, but am unsure if it will have any drawbacks since I’m using the Zeal theme from GP?
Thanks again!
May 23, 2018 at 7:27 am #582623David
StaffCustomer SupportHi Marcus,
hard not for me to be biased, but personally i always use the GP Header, it has schema markup, a great sticky navigation and the slide out navigation is really cool. Plus it’s easier to introduce new break points. You can also merge it with a GP Page Header. And there’s nothing stopping you adding elementor templates to that or any of the widget areas or hooks.
If you need a hand styling the header and navigation in GP then we can provide assistance and CSS.May 23, 2018 at 7:36 am #582631Marcus
Thanks David – appreciate your views on this. I will play with both and see how it goes!
Marcus
May 23, 2018 at 7:41 am #582637David
StaffCustomer SupportYou’re welcome!
-
AuthorPosts
- You must be logged in to reply to this topic.