when I activated the theme. it is only one page. the navbar links are Home #About #Services #Contact
the problem when I make template name on the frontpage
<?php /* Template Name: front-page */ get_header(); ?>
then I created a page from the dashboard called Home
it added slug /home at the end of the url
so the website url differed because of this homepage template. it added the home slug the url. I need to remove /home slug. just want the same link without changing.
what should I do, please? to make template for homepage without changing the url of the website?
and many thanks in advance.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Check this article on how to create a static homepage in WordPress https://wordpress.org/support/article/creating-a-static-front-page/
Method 2
You can change /* Template Name: front-page */ and use page ID instead of a title.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0