• I don’t want to use the new 1.5 templates — I just want to have everything on the root directory. How can I go about doing this? It seems that the templates tags are template-specific.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Have an index.php in the root directory which contains the following at the very top.
    <?php
    define( "WP_USE_THEMES", false );
    require("./wp-blog-header.php");
    ?>

    I’d add that templates tags are template-specific, but theme independent. By that I mean, any php file you can use them in is considered a “template.”

    Thread Starter reid315

    (@reid315)

    I’m talking about the comment files and the posts and the archives, etc. can i just move them to the root or do i have to adjust a few urls?

    Moderator James Huff

    (@macmanx)

    You’d have to change a lot of URLs and settings. Why move your template files to root anyways? I can’t even conceive of an advantage.

    Thread Starter reid315

    (@reid315)

    I’m trying to move everything to the root so that I have everything in one place; that way, they can all access the same css file through index.php.
    I just want to push everything through index.php so i can change the template in just one file. think the 1.2 version of wp.

    You can have a one template theme, just like 1.2 except in a directory where it won’t be overwritten during upgrade.

    Regardless, if you are upgrading from 1.2, you can copy your original index.php, wp-comments-popup.php, wp-comments.php and wp-layout.css back into a 1.5 installation to regain your 1.2 look. You don’t have to set WP_USE_THEMES or anything else. Themes are off unless you explicitly set WP_USE_THEMES to true in the root index.php.

    Thread Starter reid315

    (@reid315)

    sorry, rboren, not what i’m looking for. I was looking for a way to move all the template files to the root and still have wp functional. either way, i found the way to do so.

    all i had to do was rename wp.php to index.php and since i was just going to use the comments_template() function, I only had to change one address in the included file. a little bugging couldn’t hurt.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘templates on root’ is closed to new replies.