customization - How can I create a Custom Page? (not a page template!!)

I would like to have inside my theme folder, a folder where I can leave all the portion of code and snippets that I don&

I would like to have inside my theme folder, a folder where I can leave all the portion of code and snippets that I don't want to use anymore or I just want to save for a while, and accessible every time I want to check it in the browser, the same way I usually do with frontpage.php. Something I can access through the link: http://localhost:8888/mydomain/temporary/page1.php http://localhost:8888/mydomain/temporary/page2.php http://localhost:8888/mydomain/temporary/page3.php

pd: i'm using understrap-child-master

I would like to have inside my theme folder, a folder where I can leave all the portion of code and snippets that I don't want to use anymore or I just want to save for a while, and accessible every time I want to check it in the browser, the same way I usually do with frontpage.php. Something I can access through the link: http://localhost:8888/mydomain/temporary/page1.php http://localhost:8888/mydomain/temporary/page2.php http://localhost:8888/mydomain/temporary/page3.php

pd: i'm using understrap-child-master

Share Improve this question asked Oct 30, 2019 at 11:05 Antonino LatteneAntonino Lattene 1431 gold badge2 silver badges12 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

You can do that. Try it out. They will exist outside of WordPress though so they won't be editable by the dashboard and won't call any WordPress features (head, css, footer etc).

I found a workaround for this.

  1. I create a new file in a new folder in my theme, called prova.php and I "initialized" it as a template page introducing this line:

<?php /* Name: Prova */ ?>

  1. Then I create a new page in the wordpress admin, and i set it to use my new file as layout.

  2. Now I can modify the file as I want using html, css, js, wordpress code etc.. and see the changes at localhost:8888/mydomanin/prova/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744905937a4600255.html

相关推荐

  • customization - How can I create a Custom Page? (not a page template!!)

    I would like to have inside my theme folder, a folder where I can leave all the portion of code and snippets that I don&

    1天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信