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 badges2 Answers
Reset to default 0You 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.
- 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 */ ?>
Then I create a new page in the wordpress admin, and i set it to use my new file as layout.
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
评论列表(0条)