简体   繁体   中英

Dynamic body in html for making wordpress theme

Can you help me, please ? Maybe this question is stupid but I am new in Wordpress. First I have created project using html and css, javascript. Then, I have converted my html code to wordpress theme. For example I have written get_header() instead of html head and get_footer() instead of html footer. 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(). I have tried to write my html code in adding wordpress page, to be more clear, in wordpress dashboard. When I change page, body's seem must changing.

What should i do, please ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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