• Resolved mlphoto83

    (@mlphoto83)


    The site I am trying to apply this to: michellelynnphoto.com

    When I try to make a child theme for twentytwelve it just shows up as a grey page with the menu links from my site aligned down the left side. I have followed the tutorials and still can’t seem to get it to work.

    I am also wondering if it is normal for the wp-content/themes/twentytwelve to only show an ie.css? Since the tutorials reference to have your child theme load the twentytwelve/style.css?

    I found a code to have the menu bar links show below the header.. I tested it in the editor part of twentytwelve since my child theme is not working, and changing the header.php file itself worked.. I changed it back because I have read that updates might mess that up.. I just need to find out what I am doing wrong in regards to the child theme… Below is the text I have loaded in my child theme as per the tutorials..

    /*
    Theme Name: Twenty Twelve Child
    Theme URI: https://example.com/
    Description: Child theme for the Twenty Twelve theme
    Author: Your name here
    Author URI: https://example.com/about/
    Template: twentytwelve
    Version: 0.1.0
    */

    @import(‘../twentytwelve/style.css’);

    I have changed this around as well, as other tutorials recommended changing things a bit.. but none of them show anything but the same grey page with only links…

Viewing 10 replies - 16 through 25 (of 25 total)
  • The @import line is not fixed on your site…see my post above. Do you have caching on your site?

    Thread Starter mlphoto83

    (@mlphoto83)

    in my godaddy ftp site it is changed in the style.css sheet.. I activated the main theme and then reactivated the child.. not sure how to turn caching on/off on my site, I will research how to find that out and let you know.

    Thread Starter mlphoto83

    (@mlphoto83)

    It seems like most of the info is there on my site.. and when I click on one of my image galleries the images are in the same layout as the main twentytwelve theme.. its just the menu buttons are all crazy listed as the links on the left hand side.. my breezing forms layouts are a little off.. and the centering is wrong in the whole site.. etc.. odd.

    That’s because the parent theme styles are not being loaded – because the @import line is wrong.

    What shows up in Dashboard in that file?

    Thread Starter mlphoto83

    (@mlphoto83)

    Not sure where exactly what file in dashboard you are referring to, but I did just go into my editor for my theme and it shows

    /*
    Theme Name: Twenty Twelve Child
    Theme URI: https://example.com/
    Description: Child theme for the Twenty Twelve theme
    Author: Your name here
    Author URI: https://example.com/about/
    Template: twentytwelve
    Version: 0.1.0
    */

    @import url(‘../twentytwelve/style.css’);

    in wordpress…

    It’s working now :)!

    Thread Starter mlphoto83

    (@mlphoto83)

    lol, but my site looks exactly the same on my end. I’m using firefox, might it be an issue with that?

    Thread Starter mlphoto83

    (@mlphoto83)

    Nevermind I refreshed like 7 times and it finally works! Thank you so very much for putting up with me lol!

    Thread Starter mlphoto83

    (@mlphoto83)

    So now if I want to adjust the header.php code that I have I would just copy it into my child under the @ import line? or is there anything special with .php edits on child themes?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You don’t put it into your style.css file.

    If you want to modify header.php, you copy that from the theme and paste it into your Child Theme directory. Then you can modify your header.php file (from within your Child Theme).

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Child theme only showing grey page with menu links down the side.’ is closed to new replies.