admin管理员组文章数量:1323225
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.
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.
Share Improve this question asked Oct 3, 2020 at 16:01 socialsocial 713 silver badges9 bronze badges2 Answers
Reset to default 0Check this article on how to create a static homepage in WordPress https://wordpress/support/article/creating-a-static-front-page/
You can change /* Template Name: front-page */ and use page ID instead of a title.
本文标签: permalinksHomepage template and url changed
版权声明:本文标题:permalinks - Homepage template and url changed? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742083203a2419819.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论