- This topic has 6 replies, 3 voices, and was last updated 3 years, 3 months ago by David.
-
AuthorPosts
-
January 14, 2021 at 7:14 am #1618618Evan
Hi, we are looking to create a minimalist header basically identical to this >
https://screencraft.org/action/
This would not be used site-wide, but rather on an isolated landing page of ours.
Any advice on how to achieve this very much appreciated, as we are struggling to do it using the Header element currently.
ps. the header links can be achieved either via buttons or via a bespoke WP menu we could create, as the other sitewide menu contains too many items
January 14, 2021 at 8:44 am #1618755DavidStaffCustomer SupportHi there,
do you require the site header ( logo / menu / button ) and the hero element ?
And can you share a link to your site so i can see what the current layout is?
January 14, 2021 at 8:47 am #1618760EvanHi David, we just want to copy exactly the layout at the link above, for this one landing page.
https://industrialscripts.com/ is our site so you can see the layout we use, sitewide.
January 14, 2021 at 10:02 am #1618875LeoStaffCustomer SupportPlease refer to the screenshot here:
https://www.screencast.com/t/o7VG6qmKHThe section highlighted in red can be achieved with the navigation as a header option:
https://docs.generatepress.com/article/navigation-as-a-header/And add button in navigation:
https://docs.generatepress.com/article/adding-buttons-navigation/As for the section highlighted in green, I would actually recommend adding that as the first section of your home page content using GenerateBlocks instead of the header element module.
Couple of videos that might help:
https://youtu.be/6JhgdR_UMco
https://youtu.be/b9uYD-qTnkYJanuary 14, 2021 at 10:09 am #1618881LeoStaffCustomer SupportIf you need the navigation as a header for one page only then use this PHP snippet:
add_filter( 'option_generate_menu_plus_settings', function( $settings ) { if ( is_page( xx ) ) { $settings['navigation_as_header'] = 'true'; } return $settings; } );
Adding PHP: https://docs.generatepress.com/article/adding-php/
And edit
xx
to the actual ID of the page.January 15, 2021 at 6:55 am #1620094EvanThanks guys.
I am not a dev and get very nervous with php however. Is there any other creative workaround way of making a one-off landing page use the navigation as header function?
January 15, 2021 at 8:03 am #1620204DavidStaffCustomer SupportUnfortunately not – the only way to make the change in layout is to use the function that Leo provided. In the Doc Leo provided there is the second option of using the Code Snippets plugin which would be the simplest method to add that code.
-
AuthorPosts
- You must be logged in to reply to this topic.