Okay
  Public Ticket #181746
Child theme installation problems
Closed

Comments

  • StandUp started the conversation
    Hi ya I can't seem to get a child theme to work. I've created the folder in themes named powermag-child and the necessary css file, and it appears in the Themes section of the admin area. However, if I try to preview or activate it, everything is blank--when I activated it, the backend admin area basically disappeared (luckily I was able to restore PowerMag theme). We have successfully installed and are able to preview a child theme for twentytwelve. Is there something else I need to do to activate the child theme? Thanks.
  • StandUp replied

    So, I was able to find a comment you made on a post 9 months ago...I made this change you suggested to that user and it works as it should (mostly). However, none of the theme settings were saved, and the style.css file in the child theme that should override the main one doesn't work. I had to put the styles in the custom styles section of the theme settings in order for it to work.

    Try by replacing

    get_stylesheet_directory_uri()with
    get_template_directory_uri()
    and
    get_stylesheet_directory()
    with
    get_template_directory()
    everywhere you find them in functions.php

     

  •  93
    djwd replied

    Hi there,

    I tested child themes a while ago and it ran smoothly after making those changes, if options aren't saved it means there's something going on with the database though.

    With the info I have it's hard to say what's wrong though, could you link the old ticket you found please?

    Regards
    djwd

    Regards
    djwd