• I’ve had my blog up for maybe two weeks and already I’m getting the itch to change the template.

    Ordinarily, I know it’s just a matter of dropping in the new index.php, wp-layout.css and graphics you’d find in a new template, but since I’ve made modifications to the code in my index.php I was wondering if anyone could suggest a painless way of keeping the “old” one available to the public while I work on the new template.

    Could I just make a copy of my blog directory with a few minor adjustments so both the old and the new read from the same database? Or are we talking a redirect of some sort of which I’d need help doing as I’ve never done that before.

    Thanks for any input!

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter davincim

    (@davincim)

    You’re right, Kafkaesqui. I went back to check and remembered about the “test” reference to my other blog. I know what to do now.

    My files are split, so I call header and footer via php…

    I think it will make future skinning easier…

    but I just do the same thing as mentioned above…

    index2
    wp-layout2
    header2
    footer2

    ??

    Thread Starter davincim

    (@davincim)

    Okay, I’ve successfully installed a test area, but I have to ask: how do I get the new index.php to read the posts I’ve already put into my database? This would really be helpful as I’d like to view new layouts with something as close to the real thing (my live blog).

    Thread Starter davincim

    (@davincim)

    bounce

    Thread Starter davincim

    (@davincim)

    My gut tells me the solution is right in front of me, but I need someone to turn on the lights.

    Pleeeaassseeee? ??

    What I did was to completley ignore the stylesheet or how the index.php file was treating it and instead of reading the help file, I rewrote both the stylesheet and index.php’s handling of the stylesheet. maybe you could do that too?

    davincim,

    If you are wondering about having your test site showing all of your production site posts, this won’t happen. Why? Because your test site is using a completely different set of tables. You could use phpMyAdmin to copy the contents of your production tables to your test tables if you are comfortable doing that. Otherwise, you could simply do a cut/paste method from one admin panel to the other or simply just use a Lorem Ipsum kind plugin to supply you with some content while you do your tests.

    Thread Starter davincim

    (@davincim)

    Thanks NuclearMoose and worchyld! ??

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘How to keep index.php running while updating it’ is closed to new replies.