Support » Fixing WordPress » I’m ready to start tweaking my home page!

  • I took someone’s advice and did all the installation online. It was so easy, even I could understand it – and it works!
    Now I’d like to style my page, but it would be nice if I could do it locally, then publish the revised page online.
    So here are my questions:
    1. Is it OK to tweak the local home page and republish it occasionally, as long as you don’t mess with any technical functions? Or do you have to do everything online?
    2. When I try to preview my home page locally, I get the “Error establishing a database connection!” message.
    I would assume there are two solutions – create another database connection locally, or strip the relevant technical stuff out of my page, leaving a plain HTML page that I can preview.
    What’s the best plan? I’m worried that if I create a local database and connect to it, I might inadvertently alter some technical settings that will screw up my real BLOG when I republish my local page.
    If stripping code is the answer, can you tell me exactly what I have to delete before I can preview my page locally without a database connection?
    On a similar note, I’d like to be able to move things around – perhaps change the position of certain elements. Is it generally safe to do so as long as you don’t alter the technical stuff? And if I do screw up, I can always fix it by replacing the mangled version with the original copy I wisely set aside, right?
    Last question – If I screw up really bad, or if I simply want to go back to square one and start over, can I remove my online BLOG by simply deleting the WordPress folder I uploaded and the database I created for it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1. and 2. : If you just want to change the styling using the CSS stylesheet, then view your blog in a browser and save that to your computer and also save the stylesheet and save that, then edit index.html that you saved to use the local stylesheet.
    3. Yes. 🙂

    MySQL is really easy to install, and after it’s up, WordPress does most of the work. This is probably good if you want to get a little hands-on and see how things work.
    On the other hand, there are probably a lot of other ways to do this.
    Another way I can think of is to install a second copy of WordPress onto your site but in a different directory. Connect it to the same database. You should be able to change this “private” copy of your index.php file, then when you get it the way you want, you can copy it over top of the “public” one. This would let you preview the tags inserting actual data from your database, which is a handy thing.
    If you’re just going to slug around with the CSS, 2fargon’s method is pretty safe. Unless you’re adding extra features (via plugins and whatnot), you probably only need to mess with the CSS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I’m ready to start tweaking my home page!’ is closed to new replies.