WordPress.org

Support

Support » Themes and Templates » templates and index outside of WP folder

templates and index outside of WP folder

  • Hi there,

    I have my index.php outside of the wp folder and theme folder. Now I guess I can’t keep the index in the themes folder or is there another way to do this?

    Thanks
    Karl

Viewing 7 replies - 1 through 7 (of 7 total)
  • Not sure what you’re asking or what you’re trying to do. Perhaps elaborate a bit?

    I have my index.php outside of the wp folder and theme folder.

    Which index.php and why is it located there?

    Now I guess I can’t keep the index in the themes folder

    Why can’t you keep it and what is your overall goal?

    or is there another way to do this?

    To do what?

    Sorry about that. In general option you have this:

    ‘Blog address (URI): If you want your blog homepage to be different than the directory you installed WordPress in, enter that address here. ‘

    Traditionally I had my main wordpress index outside of the WP root. It looks like I scan’t do that now with themes. Is that correct?

    This is how WP1.5 has my url: http://www.domain.com/wp/index.php

    I want to use this: http://www.domain.com/index.php

    Which is how I have always done it with WP1.2 and previous version.

    Also I am getting a little confused about my css style sheet sitting in the wp-content/themes folder as my images are outside of the WP folder as they also serve additional non-wp pages. With my css in the ‘themes’ folder my images are not showing.

    Any suggestions?

    Thanks

    Well you can put what you like where you like but then you are left with the problem of figuring out the file path preferably dynamically. For the images you could duplicate them , dedicate one folder in one theme, or hand code in the full url into the CSS.

    Thanks for that. So what do people do when they are only using WP for blogging purposes and have various folders for static content.

    This is my root:

    index.php
    /WP/
    /IMAGES/
    /CSS/
    /ABOUT/
    /CONTACT/
    /EVENTS/

    Getting very confused 🙁

    Thanks

    Well whether you have other stuff installed or not the integrity of the WP file structure needs to be maintained. I have installed in a directory. Then all my stuff is in wp-content/themes etc.

    Oh so you have every other folder for your site in the themes folder?

    Yes I do. Plus my about pages etc are normally (I am just moving hosts) produced in admin so they do not need a folder at all. If I was in your position I might put a static folder in one of my theme folders say – and put my html files in there. That way I have a nice clean install if I need to upgrade and a simple file path to refer to them. Plus there is a tag for the template folder so it can be dynamic. Incidentally now that some of us have worked out how to customise the *front* page without a lot of hacking there does not seem to be any reason why WP should not go into the domain root directory. Sub directories are not necessary any more no matter what configuration of blog / static you need.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘templates and index outside of WP folder’ is closed to new replies.
Skip to toolbar