Creating a clean independent page within wordpress
-
So I know you can simply go into the root directory, create a php file and copy-paste the following:
<?php /* Don't remove this line. */ require('./wp-blog-header.php'); ?> <?php get_header(); ?> <div class="main"> <div class="content"> this is where my stuff goes... </div> <div class="clearer"><span></span></div> </div> <?php get_footer(); ?> </div>
This will create a standalone page that is represented by
https://website.com/theurl.phpHowever, it is not congruent with the URL format of wordpress, ie. https://website.com/theurl/
Is there a way to do this cleanly? perhaps even putting the page in question into the wp-content/themes/nameoftheme/* directory where the rest of the theme files live?
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Creating a clean independent page within wordpress’ is closed to new replies.