• For an easy update of rookie theme and keep my changes, I choose to use a child theme, as it is the best practice with WP.

    But using your rookie theme as a child will fail.
    In rookie functions.php, stylesheet from child is loaded instead parent.

    //Actual code
    //wp_enqueue_style( ‘rookie-style’, get_stylesheet_uri() );
    //Please fix by replacing with this one:
    wp_enqueue_style( ‘rookie-style’, get_template_directory_uri() . ‘/style.css’ );

    More details can be found there :
    https://github.com/ThemeBoy/Rookie/issues/26

Viewing 2 replies - 1 through 2 (of 2 total)
  • Brian

    (@brianmiyaji)

    @ludoo0d0a Thanks for your feedback!

    This is actually intentional, as the stylesheet for Rookie is separated into two: framework.css and style.css. The framework stylesheet contains the basic column layouts and overall structure of the theme, while style.css contains specific styling choices like typography and colors.

    We’ve prepared a Rookie Child Theme Template which you can use to create your own child theme. The child theme will automatically load Rookie’s framework.css and its own style.css, which you can modify for your own design. By default, the child theme will look identical to Rookie.

    Thread Starter ludoo0d0a

    (@ludoo0d0a)

    I already saw this project but I reject it because style.css is completely cloned in child theme.
    I’d like to use the rookie style.css, and let myself overrides classes I needed.
    And I didn’t understand why in functions.php, $content_width is set again.

    Anyway, i will consider its usage again.
    If you can give more explanations about my previous questions, it will be useful for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow child theme with rookie’ is closed to new replies.