Support » Fixing WordPress » Don’t want to use themes: now I’m stuck

  • I’m using the nightly from 28-december. I don’t want to use themes, instead through the options I’ve set my homepage for my weblog to another directory. In that directory I’ve put the index.php and all the other necessary files (header, footer, styles). But when I call for that directory still the original index.php is opened within the wp-directory. It worked ok with 1.2, but the ‘forwarding’ to the ‘home’ is not working and the default template is used.

    Anyone who is also using seperate directories for their site(s) that knows what I’m doing wrong here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ryan Boren

    (@ryan)

    WordPress Dev

    Starting with the 20040110 nightly build, you can circumvent the theme sytem entirely by setting $wp_template_redirect to false right before you include the blog header.

    $wp_template_redirect = false;
    require("./wp-blog-header.php");

    You will get 1.2.x style behavior and lose all 1.5 theme related features.

    Thanks! I realize the themes are a nice addition, but this way I can keep weblog-content and style together, at least within the same folder, but seperated from the ‘engine’ which is wordpress. To me this is easier to work with and safer!

    Does this mean I can put index.php, header.php, footer.php, sidebar.php ánd style.css in my weblogfolder? The only real reference to the wordpressfolder would be the reference in my modified header.php to the wp-blog-header file.

    I installed the nightly from 10-01-2005 instead of the one you mentioned 😉 and use these lines in my weblog-beta/index.php:

    $wp_template_redirect = false;
    require(‘../wordpress-beta/wp-blog-header.php’);
    include(‘header.php’);

    etc.

    But still the site is linked to the wp-content/themes/folder while in the optionsmenu ‘home’ is set to
    http://www.spoenk.nl/weblog-beta

    (My folders are all side by side: http://www.site.nl/weblog-beta and http://www.site.nl/wordpress-beta)

    By the way, if you see it as it should it’s because I’m using the themesfolder for a moment to do some more testing…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don’t want to use themes: now I’m stuck’ is closed to new replies.