Archived topic
Landing page: How to remove navigation and copyright area
3 replies · Started by mkjj on October 19, 2020
I have to build a landing page, and we would like to remove both the header navigation and the copyright area below the footer widget area for this specific page. I could do this using CSS, but I would prefer a cleaner method. I created a new page template and used the code of the header.php. I can easily remove the header navigation section. It's not so easy with the footer. The footer.php calls several actions. I wasn't able to remove the copyright section only. Ho can I do this? Even better would be a function in the child theme's functions.php that removes the actions for both the header navigation and the copyright section for just this page ID. I checked the documention about hooks, but did not fully understand how to remove both sections from the page.
Hi there,
make sure you have the Disable Elements module and the Elements Module enabled.
Then create a new Layout Element:
https://docs.generatepress.com/article/layout-element-overview/
You can disable Primary Navigation / Mobile Header / Footer and set the Footer widgets to display 0
Very impressive, thank you! I've just found out that I could do this even for each individual page by changing the layout options. Great feature. This is what is really awesome about Generatepress: It does not use a bloated theme options panel, but has so many great features. Excellent!
Awesome :) Glad to hear it works and you like the feature !