I am the begineer in WP trying to convert my HTML site to Wordpress theme. Everything working fine but i want to link one page having name contact-us.php in my theme root directory , i want to link this page with contact us menu in the header.
答案 0 :(得分:0)
不建议您采取行动的方式。 当您想要创建一个联系我们页面时,在Wordpress中创建一个模板 Page Templates
在后台,您可以创建一个新页面,并在右侧边栏中选择此模板
答案 1 :(得分:0)
首先,您必须为您的联系我们文件制作模板。 在联系我们文件的顶部使用此代码。
<?php
/**
* Template Name: Contact Us Page
*/
?>
从后端制作页面并从右侧选择与我们联系的页面模板。之后,从菜单部分创建一个菜单。我希望它会起作用。