wp_enqueue_style $dep argument does nothing?

The 3rd argument of wp_enqueue_style means when enqueuing this stylesheet make sure it is after the list of dependencies. In your case, prior to enqueueing the child-style WordPress make sure that parent-style is enqueued first. Even though the enqueued statements are in the correct order: wp_enqueue_style(‘parent-style’, get_template_directory_uri() . ‘/style.css’); wp_enqueue_style(‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’); There will … Read more

How to integrate JSS to WordPress

JSS is designed for dynamically generated HTML rendered by JS. It’s purpose is to generate unique identifiers for class names to prevent collisions in naming. If you want to have static CSS generated it’s easier to look at LESS\SASS\SCSS and build them with gulp, or with Less straight(http://lesscss.org/usage/). Here’s heavily modified example which does what … Read more

How to add more default colors?

You should be able to add more colors using the add_theme_support function as per the docs here add_theme_support( ‘editor-color-palette’, array( array( ‘name’ => __( ‘strong magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘strong-magenta’, ‘color’ => ‘#a156b4’, ), array( ‘name’ => __( ‘light grayish magenta’, ‘themeLangDomain’ ), ‘slug’ => ‘light-grayish-magenta’, ‘color’ => ‘#d0a5db’, ), array( ‘name’ => __( … Read more