Submit Your Article Forum Rules

Results 1 to 10 of 10

Thread: Simple Question: How do I edit a website so I can upload all the changes at once?

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    36

    Simple Question: How do I edit a website so I can upload all the changes at once?

    I have a wordpress website.

    I want to make some big changes to the layout (mostly css). How would I make those changes and view those changes without the changes going live just yet?

    Basically, I want all the changes on my website to appear all at once.

    I was thinking about downloading my whole website to my computer, then make the changes. As I make the changes, I view it on my computer (and not on the live web.) Then when I am done, upload my whole website again. I don't know if this method is safe or not or if things could get changed when I re-upload.

    What is the best way to go about doing this?

  2. #2
    Moderator HTMLBasicTutor's Avatar
    Join Date
    Apr 2010
    Location
    Canada
    Posts
    934
    You can get WampServer to install an Apache server locally. Be sure to turn IIS off if you have it running by default.

    Install Wordpress from wordpress.org.

    Dowload your theme from your live site to your computer and put it under themes folder in your local Wordpress install. Activate it.

    Now you can either create some fake content within the local install to test your changes with or try importing your existing content into the local install.

    Play with the CSS locally and once done upload to your live site.
    Accrete Web Solutions - Search engine friendly websites, ecommerce websites & blogs
    Web Page Mistakes - Web page mistakes with solutions
    HTML Basic Tutor - HTML help to learn HTML basics

  3. The following user agrees with HTMLBasicTutor:
  4. #3
    Administrator weegillis's Avatar
    Join Date
    Oct 2003
    Posts
    5,788

    Cool

    Being a seat of the pants kind of guy, I'd get ballsy and tweak the CSS on the fly. That's me. What @HTMLBasicTutor suggests is infinitely wiser, unless of course you're feeling ballsy.

    Since it is just the CSS you're changing then having backed up your old style sheet, you could select the CSS you're going to change, leave it in place but copy it, then paste it underneath so it's lower in the cascade, and execute all the changes on those selectors, removing any properties you do not change (they're still higher up). You're basically overwriting existing style rules. Once your overwrites are working, you can remove their originals, and merge the new with the old.

    You can comment out anything you don't wish to test. Run your live test. There's your changes. Doing small projects in an undistracted environment, you can work the CSS on the fly, and implement changes in an orderly way that nobody even notices.

    Changes to the chrome might be trickier, but then it's only images and CSS, right? Still all changes that can be done on the fly, if done carefully.

    Now I don't advocate this, the wiser advice has already been offered. I only bring attention to the fact the CSS is that simple, and easy to work with, taken in chunks and respecting the specificity, the cascade and inheritance. It is graphics design, not programming, and infinitely more flexible than many would ever imagine. And if you don't like something, you change it back.

  5. #4
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,249
    Just remember though, that after you've made your changes and want to upload it all to the server, live, that you only need to upload the theme folder...
    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  6. #5
    Senior Member jannmirch's Avatar
    Join Date
    Sep 2005
    Posts
    229
    For CSS tweaks I'm with WeeGillis - and agree the smarter thing to do is follow the advice above. But also, I love that in Chrome I can inspect an element and change it right in the browser to see if its doing what I want it to do. when it does I copy and paste it into my CSS file and upload the changes.

    But, as you say, you're making a lot of changes. This might not be so practical.
    Marketing & Web Design www.WestchesterMarketingCafe.com
    Twitter: @JannMirch
    FB: Marketing Cafe

  7. #6
    Senior Member jhannawin's Avatar
    Join Date
    Jun 2010
    Location
    UK
    Posts
    178
    Wow, I never realised that was so complex.
    ---------------------------------------------------------------------
    I-ntarsia(tm) - A Hosted CMS for web designers and marketing agencies

  8. #7
    Moderator HTMLBasicTutor's Avatar
    Join Date
    Apr 2010
    Location
    Canada
    Posts
    934
    Unfortunately Wordpress makes it too easy to edit live. This is a dangerous situation.
    a ) There is the potential of you doing something that breaks the site. (Even pros mess up.)
    b ) Those who edit live tend not to backup what they have done once finished in case the server crashes and looses their changes. Web hosts say they back up but what if you did these changes in between back ups and the server crashes. The web host will put things back as they were at their last backup. You will have to remember what changes you did and do them over.

    Plus the OP said:
    Quote Originally Posted by kyle246 View Post
    ...make those changes and view those changes without the changes going live just yet?

    Basically, I want all the changes on my website to appear all at once....
    So working live is not an option in this case unless you make a copy of the theme on the server and switch between old and new on the grave yard shift (i.e. the time of day when an oops would affect the visitors least). Still very confusing because unless you know how to change the theme description shown in the themes screen you just might activate and edit the wrong version.
    Accrete Web Solutions - Search engine friendly websites, ecommerce websites & blogs
    Web Page Mistakes - Web page mistakes with solutions
    HTML Basic Tutor - HTML help to learn HTML basics

  9. The following user agrees with HTMLBasicTutor:
  10. #8
    Junior Member
    Join Date
    Oct 2011
    Posts
    4

    Smile Another Way

    You can do all of the above, but just make a Sandbox or another installation of what you are working on. Make your changes there, then copy the WP Theme directory over to your REAL site once you are done. That way you never blow things up! Easy Peazey.

    Cheers,
    Andrew
    [removed]
    Last edited by HTMLBasicTutor; 02-10-2012 at 01:25 PM.

  11. #9
    Junior Member
    Join Date
    Nov 2011
    Location
    Orange County, California
    Posts
    7
    What kind of computer are you on? If you're on a Mac, use MAMP to run your web server off your computer. The process is the same to what the other posters have said.

    Setup web server
    Download site and run off your computer
    Make changes (have copies of original files on hand)
    Then re-upload all your changes.

    MAMP is free and has good documentation, however still took me 6-8 hours to fully understand and use. Also if you use the latest version of firefox, they have a nifty inspector tool like Chrome now for CSS changes.

  12. #10
    Senior Member ronchalice's Avatar
    Join Date
    Oct 2006
    Posts
    186
    Kind of siding with Easy... I have a test WP instance on each of my server accounts. When I get it right, it's simple to copy the theme folder(s) to the live site right before cutover. With tools like myPHPAdmin it's pretty easy to copy some live data into the test instance if you're look is going to be data dependent.

    It also helps to mark up (I use Goodreader on an iPad so as not to mess with paper) a copy of the existing CSS before you begin making changes. In many cases, you'll be able to all the mods in a single sitting.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •