WordPress.org

Ready to get started?Download WordPress

Forums

Where can I play with my template? (6 posts)

  1. sahdoggiemom
    Member
    Posted 9 years ago #

    I have a brand-spanking-new template and am learning the ins and outs of PHP and CSS. However, I want to be able to play with the template and try stuff out (and view the results) without having to obviously do it with my main index.php file.
    Can I do this or am I fated to the silly trial and error thing? Please say I can do this somewhere.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Yes you can :)
    1. Install wordpress again (new table_prefix, new directory) and copy over all your changes - that then becomes a testblog. Testblogs are good because you can test anything at all on them.
    or
    2. Install an apache/mysql/php setup in your computer. Advantage is no uploading of files, and everything really is private for your creations. (I run XP Home and use xampp)
    or
    3. COPY index.php and wp-layout.css, then upload them to your directory but called 'index2.php' and wp-layout2.css'. You then need to alter index2.php slightly so it called the correct css file, but be aware that if you click things like comments, it will use the original index file.
    I have used all 3 methods, but now just use 1 and 2.

  3. mattiasz
    Member
    Posted 9 years ago #

    ...or if you'd like to just work on the CSS format/layout locally, that's very possible also. (Maybe I'm stating the obvoious here.)
    Grab the source of your page and save it locally. Also save your wp-layout.css locally. Now, make sure the page source actually points to the css file. The import statement of the default setup still points to your online style sheet.
    Now edit your local css file to your hearts content, and view the file locally in your browser.
    My host is a bit slow (I'm a cheapo) so this proved a lot faster.
    And if you want to do it online, just save your index.php and wp-layout.css with new names, on your server (this should work, shouldn't it?). Then experiment all you want.
    Not very hidden to prying eyes, but your changes won't affect the current look until you're ready to switch over.
    /Mattias

  4. tgrisier
    Member
    Posted 9 years ago #

    The last method is how I do it and it works really well.

  5. Jack
    Member
    Posted 9 years ago #

    I hadn't thought of that last option :) Sounds better than what I did until now:
    I'm using a dummy index-file which has the exact same structure like the one online, but with static handtyped content. This way I could experiment with the layout/content before changing anything in the online versions.

  6. Observer
    Member
    Posted 9 years ago #

    Have a look at TSW [The Saint WAMP]. It's an Apache/MySQL/PHP installer, which can be enhanced by a WordPress plug-in.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.