简体   繁体   English

用于制作 wordpress 主题的 html 中的动态正文

[英]Dynamic body in html for making wordpress theme

Can you help me, please ?你能帮我吗 ? Maybe this question is stupid but I am new in Wordpress.也许这个问题很愚蠢,但我是 Wordpress 的新手。 First I have created project using html and css, javascript.首先,我使用 html 和 css、javascript 创建了项目。 Then, I have converted my html code to wordpress theme.然后,我将我的 html 代码转换为 wordpress 主题。 For example I have written get_header() instead of html head and get_footer() instead of html footer.例如,我写了 get_header() 而不是 html head 和 get_footer() 而不是 html 页脚。 Finally I must do dynamic my project's body but I can't.最后我必须做动态我的项目的主体,但我不能。 For example when i change page, header and footer must stay in its place but body must changing.例如,当我更改页面时,页眉和页脚必须保持原位,但正文必须更改。 Problem is I do not know to write code in my body section.问题是我不知道在我的正文部分编写代码。 my code's seem我的代码似乎

I have called my other section though get_template_part().我已经通过 get_template_part() 调用了我的其他部分。 I have tried to write my html code in adding wordpress page, to be more clear, in wordpress dashboard.我试图在wordpress仪表板中编写我的html代码来添加wordpress页面,更清楚地说。 When I change page, body's seem must changing.当我改变页面时,身体似乎必须改变。

What should i do, please ?请问我该怎么办?

在您的模板中添加特定页面的 HTML,如主页和其他 cms 页面,并在管理仪表板中转到页面模板中的页面部分并分配特定页面模板,例如您为主页创建了主页模板转到页面模板中管理仪表板中的页面将主页分配给页面,然后您可以在前端看到页面的 HTML。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM