• Hi, I am currently using the Twenty Ten theme and I have changed some code in the style.css editor. I am not using a child theme, so my question is.. I have saved a copy of my edited style.css code with wordpad.. is this sufficient for a ‘back up’ if when the theme is updated and my changes revert back, I can simply paste my edited code back into the style.css editor? I am new to all this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plenty, Just make sure the doc is saved in standard format, meaning the lines are all there and not squished together. [Link removed – this is not an advertising forum.]

    Thread Starter gj_chris

    (@gj_chris)

    Hosted with godaddy. I have tested copy and paste and all the lines seem to be there.
    Thanks for your help ??

    I have saved a copy of my edited style.css code with wordpad.. is this sufficient for a ‘back up’

    No! Do not use WordPad for editing files or creating backups for any .css or .php file. You must use a plain text editor such as NotePad.

    Thread Starter gj_chris

    (@gj_chris)

    Oh ok. I have Notepad on my pc. Am I correct in presuming that is the same Notepad that is in Accessories on a windows pc? I will use that now to backup my style.css this is the only section I have edited.
    Thanks for the advice

    Hi,
    Grab a copy of notepad++, it is like WordPress free to download and use, and it adds color to the code lines and you can see more easy if you make a mistake.

    Suggestion
    Changing values in the style.css can be hard to track, the method I prefer is to leave the themes styles without change, then at the bottom of the style.css add a new section for my changes.

    The styles are read top to bottom and the new entries replace the earlier entries as they are read.

    Example
    Twenty ten theme and I want to hide the blog title and description, I need to add display: none; also I want to change the way the content images are styles, instead of finding the blocks and editing, at the end of the file I add.

    /* Start Custom Style Changes */
    /* hide site titles */
    #site-title {
    	display:none;
    }
    
    /* hide site description */
    #site-description {
      display:none;
    }
    
    /* add a margin to the images */
    #content img {
    	margin: 10px 10px 0 0;
    }
    /* End Custom Style Changes */

    The first two are extra styles, and the third will replace the values earlier in the file.

    All I now have to do is save a copy of these changes and not the whole style.css

    HTH

    David

    Thread Starter gj_chris

    (@gj_chris)

    Cool, that seems more logical. I just need to study the different codes as I’m really new to this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Save (style.css) in Wordpad’ is closed to new replies.