• Resolved dragonrd3

    (@dragonrd3)


    I am creating a child theme to Able. Able has three style files: editor-style.css, rtl.css, and style.css. I understand how to enqueue style.css and my own child them style.css. What do I need to do about the other two? Are there any dependencies among the three that I must observe? Specific examples how to do this would be appreciated.

    Cheers,
    dragonrd3

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there – rtl.css is only needed if your site is in an RTL (right-to-left) language, such as Arabic, Farsi, or Hebrew. If that doesn’t apply to your site’s language then there’s no need to enqueue it.

    You shouldn’t need to enqueue editor-style.css yourself – it should already be in effect. It’s the styles that make the display within the TinyMCE editor look a bit more like what it does on the front end of your site.

    If you are using an RTL language, then enqueue the rtl.css stylesheet after the parent’s style.css.

    The Codex has examples of how to enqueue child theme stylesheets:

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

    Let me know if that does the trick.

    Thread Starter dragonrd3

    (@dragonrd3)

    Hi Kathryn,

    Thanks for the reply! I wasn’t sure about editor-style.css so you helped clarified it.

    I enqueue style.css as follows:

    add_action( ‘wp_enqueue_scripts’, ‘able_child_theme_enqueue_styles’ );
    function able_child_theme_enqueue_styles() {
    wp_enqueue_style( ‘able-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘able-child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array(‘able-style’)
    );
    }

    My able-child theme is now up and running, Yeah!

    dragonrd3

    Thread Starter dragonrd3

    (@dragonrd3)

    Topic resolved.

    Glad you’re all set!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to handle multiple style files in a child theme to Able’ is closed to new replies.