-3

I am having trouble, I am pretty new to Wordpress development, and I'm trying to create a page in my public_html that can be used with Wordpress and it's current theme. For example, website.com/text.php would need to include footer and header and also be able to communicate with Wordpress.

I've done a lot of research and cannot seem to find how to pull this off, can anyone here assist me?

2
  • 2
    Look up theme structure and child themes. The question is too broad to answer here. Commented Dec 21, 2016 at 16:45
  • Learn how to create a page template Commented Dec 21, 2016 at 17:05

1 Answer 1

1

Inside of your theme, copy page.php and rename the copy to page-text.php. In the dashboard, create a page titled Text. It will use whatever you place in page-text.php. WordPress can't access pages in the root.

Sign up to request clarification or add additional context in comments.

1 Comment

In addition to this, after you create the page, you can also change the URL to be /text.php if you want. So then it will look like it is in the root.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.