Archived topic
Homepage without navigation
5 replies · Started by Kris on April 4, 2022
Hi guys,
How can I remove the nav bar from my homepage?
https://alice-in-wonderland-quotes.com
We are selling an eBook on the page and we don't want people to navigate elsewhere from there.
Or, how do I make a separate Langind Page (without nav.) if removing nav from the homepage would be bad for SEO.
Thank you for you support!
Cheers,
Kris
Hi Kris,
To hide the navigation, you may go to Appearance > Customize > Layout > Primary Navigation and set the Navigation Location to No Navigation: https://share.getcloudapp.com/mXuYPj9A
With regards to the importance of a navigation for SEO, here is an article I found: https://seo.co/site-navigation/
If you wish to have a separate landing page with no navigation, this is doable through CSS.
First you’ll need to duplicate the home page. There are plugins that can do this. Example: https://wordpress.org/plugins/duplicate-page/
Then you may add a specific CSS in Appearance > Customize > Additional CSS:
.page-id-1431 nav {
display:none;
}
Kindly replace 1431 with the id of your new Page. If you want to set this new page as the Home Page, kindly go to Settings > Reading.
How to find a Page’s ID: https://athemes.com/tutorials/wordpress-page-id-and-post-id/#:~:text=To%20find%20a%20page%20ID,click%20on%20Pages%20%3E%20All%20Pages.&text=Once%20the%20page%20has%20opened,displayed%20within%20the%20page%20URL.
If you’ve set the page as your home page and the code above isn’t working, try this instead:
.home nav {
display:none;
}
Hope this helps! :)
Hi Fernando!
I used the following method:
.home nav {
display:none;
}
worked like charm, mate!
I wonder if this is going to break up my sitemap?
/Kris
It would be best to reach out to an SEO expert regarding this.
In any case, if it does affect you automatically generated sitemap, I found through this article that you can modify the sitemap manually: https://www.wpbeginner.com/beginners-guide/what-is-a-wordpress-sitemap-how-to-create-a-sitemap-in-wordpress/
Hope this helps! :)
It did break it up, mate. https://socialmediarevolver.com/addl-sitemap.xml
Perhaps I would be better off creating a separate Landing Page?
I see. If you wish to try creating a Landing page instead, you can create a duplicate of your homepage and add the CSS specific to pages mentioned earlier.
Then maybe you can customize your sitemap to include the Landing page. Here is an article that may help: https://yoast.com/help/how-to-customize-the-sitemap-index/
Hope this helps! :)