Archived topic
Onepage theme?
3 replies · Started by Jan on October 2, 2021
Hi,
among all your premium themes, do you have a one-page theme that is already designed as such?
If not, what do you recommend doing to create one?
Best regards
Jan
Hi there,
the Landing site is a one page website.
Simple set up is as follows:
1. Split the page into sections using a GenerateBlocks Container Block, with the Container Selected in Advanced > HTML Anchor add a section name eg. section-1
2. These section HTML anchors will be used in your menu item links. Create as many sections as your require each with a unique HTML anchor.
3. Now create your Menu in Appearance > Menus. Enable the CSS Field in the menu item. see here:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes
Add a custom link for each of your sections.
In the CSS Classes field add: smooth-scroll
Give it a Navigation label.
In the URL add your section name prefixed with a # - so in the example above it would be #section-1
Repeat this for each menu item.
4. In Customizer > General, enable the Smooth Scroll option.
Hi David,
nice talking to you again, it´s been a while.
I suppose you mean the theme "Landing".
I will have a look, thank you.
Jan
Yep "Landing" is the one :)
Good to talk again!