Viewing 15 replies - 1 through 15 (of 15 total)
  • You need to be using a Child Theme for any modifications to theme files –

    https://codex.www.ads-software.com/Child_Themes

    Or if you are only changing CSS, you can use a Custom CSS plugin.

    Thread Starter Dan Jones

    (@danners2003)

    EDIT:
    I am going to try the child theme way

    cheers

    Dan

    EDIT – cross-posted with you – good idea :)!

    All of the changes you’ve made to theme files will be overwritten and lost when WP is updated – so that’s quite problematic. It’s also important to have a clean copy of the default theme for troubleshooting purposes.

    Using a browser tool like Firebug is the best way to find the CSS for a specific element. Also, note that twentytwelve is mobil-first so some CSS needs to use media queries to work on regular sized screens.

    Try this for navigation color:

    /* Minimum width of 600 pixels. */
    @media screen and (min-width: 600px) {
    .main-navigation li a {
        color: #6A6A6A;
    }
    }

    Thread Starter Dan Jones

    (@danners2003)

    Haha yeah, I was thinking that when it updates it might lose it all, so thanks.

    Should I copy my normal stye.css file into the child one, as it already has the changes?

    It’s really not ideal to copy the entire thing – as it creates duplicate code and makes it much harder to keep track of the changes you’ve made. You can find your changes pretty easily using something like diffchecker – it’s a bit more work now, but you’ll likely be happier down the road.

    Thread Starter Dan Jones

    (@danners2003)

    Oh wow, okay and where will I find the original code? Now that I have changed mine so much?

    Also when creating my child theme what will be my:
    Theme URI: https://example.com/
    Author URI: https://example.com/about/
    ?
    Or can I leave these?

    Thanks for all the help WPyogi

    The only things you must have are:

    /*
    Theme Name:     Whatever you want here
    Template:       twentytwelve
    */
    @import url("../twentytwelve/style.css");
    
    //Then put your changes here.

    You can just download a new copy of the theme to your local computer –
    https://www.ads-software.com/themes/twentytwelve

    Once you’ve moved your changes, just reinstall the parent theme so you know you have a clean copy.

    Also, you really should back up your files before you start messing with them :).

    Thread Starter Dan Jones

    (@danners2003)

    Okay so now if I take all the changes and put them into the child theme then replace my edited 2012 with the original my child will overwrite it and do what the child is saying if I set it to active?

    Theoretically yes. You will also need to redo some theme settings and options in the child theme – as they aren’t all carried over.

    Thread Starter Dan Jones

    (@danners2003)

    Like what, yogi?

    You mean like my search bar?

    Like selecting the menu and widgets – don’t know about other things you’ve done.

    Thread Starter Dan Jones

    (@danners2003)

    Oh what ?? Well at least most of it still works. I hope this thread saves others the time Ive spent on this

    [email protected]

    (@ubiratir-mellohotmailcom)

    quero fazer umas comfigura??o em meu site com devo fazer/

    [email protected]

    (@ubiratir-mellohotmailcom)

    oi boa tarde eu n?o consigo fazer postagem nem muda a cor do meu site
    como fazer isso?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘twenty twelve theme menu text color’ is closed to new replies.