WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Responsive child theme

[Resolved] Responsive child theme

  • I tried to create a child theme from the latest version of Responsive theme but I can’t, probably I am not doing the right things. Everything gets stuck when I do that. Can anyone please tell me how to create an exact cloned child of the Responsive theme (I need all the functions of the original theme)? Or if it’s not a long thing, can you send me the code needed as I am in great hurry.
    Thank you guys!

    Max

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    but I can’t, probably I am not doing the right things.

    Sounds like. 😉

    Give this a read.

    http://codex.wordpress.org/Child_Themes

    Then create a directory like so wp-content/themes/responsive-child and put this style.css file in it verbatim:

    Theme Name: Responsive Child Theme
    Author: Self-Help WordPress User
    Template: responsive
    */
    
    @import url("../responsive/style.css");
    
    /* Your CSS goes after here */

    At this point do not copy any other files from the parent Responsive theme directory You will have all of the functions from the parent theme already. Never copy the functions.php from the parent theme.

    Activate the child theme and you can go from there.

    Now that you’re there already, what doesn’t work that you want to change?

    Edit: I blame the lack of coffee on my thinking this morning. Emil has also setup a dedicated forum for his themes.

    http://themeid.com/forum/forum/11/responsive-child-themes/

    That link is the support forum for Responsive Child Themes and posting there may get you a quicker response.

    it looks exactly like what I have done in the past…..

    “This directory can contain as little as a style.css file, and as much as any full-fledged WordPress theme contains:
    1. style.css (required)
    2. functions.php (optional)
    3. Template files (optional)
    4. Other files (optional)”

    I think I tried with the functions as well, because I might need to change them in the near future. I am new to Worpress but not new to PHP at all.

    I try again!

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    Never ever ever copy the parent’s functions.php file. Ever. You can populate new functions in the child theme, or if the parent theme supports it define the same functions in the child theme first.

    The child theme’s functions.php file get executed before the parent theme copy so there is some work there depending on the theme and the function.

    Give that link I edited into my earlier reply a look, Emil’s really responsive (ha! I kill me! Need coffee) and that may get you a quicker dedicated solution.

    http://themeid.com/forum/forum/11/responsive-child-themes/

    Thank you for your help Jan!
    One stupid question: if I would not want any update of responsive theme’s css, couldn’t I simply copy/paste the theme style.css content in the child style.css contest and not use the import feature (at that point it would be redundant)?

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    The import will take care of getting all of the parent theme’s CSS. Normally you just would your changes in your child theme style.css file.

    OK!
    thank you again Jan

    Max

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Responsive child theme’ is closed to new replies.
Skip to toolbar