Skip to main content
deleted 29 characters in body
Source Link

about styles you need to specify a name for each style the cant be the same and its necessary if you are overwriting it in your child and you want the parent styles to come before overwriting.

so if you justwant to your parents style.css loads after your childs style.css you need to doqueue it in your functions.php file so add this in your child themes functions.php:

/*
Theme Name:   Twenty Fifteen Child<?php
Theme URI:  function my_theme_enqueue_styles() http://example.com/twenty-fifteen-child/{
Description:  Twenty Fifteen Child Theme
Author:       John Doe
Author URI:$parent_style = 'enough_style'; http://example.com
Template:     twentyfifteen
Version:needs to be same as parent 1.0.0style
License:      GNU General 
 Public License v2 or later
Licensewp_enqueue_style( URI:$parent_style, get_template_directory_uri() http://www.gnu.org/licenses '/gpl-2.0style.htmlcss');
Tags:     }
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles',100 ); light,//it dark,will two-columns,be right-sidebar,queued responsive-layout,after accessibility-ready
Textbase.css Domain:and overwrites twenty-fifteen-childit
*/?>

its the that wordpress mentioedi tested this code and it codex

just replace the theme nameworks well now. your style.css is ok and whatever you wantu dont need to change it.

about styles you need to specify a name for each style the cant be the same and its necessary if you are overwriting it in your child and you want the parent styles to come before overwriting.

you just need to do this

/*
Theme Name:   Twenty Fifteen Child
Theme URI:    http://example.com/twenty-fifteen-child/
Description:  Twenty Fifteen Child Theme
Author:       John Doe
Author URI:   http://example.com
Template:     twentyfifteen
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  twenty-fifteen-child
*/

its the that wordpress mentioed it codex

just replace the theme name and whatever you want

about styles you need to specify a name for each style the cant be the same and its necessary if you are overwriting it in your child and you want the parent styles to come before overwriting.

so if you want to your parents style.css loads after your childs style.css you need to queue it in your functions.php file so add this in your child themes functions.php:

<?php
function my_theme_enqueue_styles() {

    $parent_style = 'enough_style'; // needs to be same as parent style
 
    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css');
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles',100 ); //it will be queued after base.css and overwrites it
?>

i tested this code and it works well now. your style.css is ok and u dont need to change it.

Source Link

about styles you need to specify a name for each style the cant be the same and its necessary if you are overwriting it in your child and you want the parent styles to come before overwriting.

you just need to do this

/*
Theme Name:   Twenty Fifteen Child
Theme URI:    http://example.com/twenty-fifteen-child/
Description:  Twenty Fifteen Child Theme
Author:       John Doe
Author URI:   http://example.com
Template:     twentyfifteen
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  twenty-fifteen-child
*/

its the that wordpress mentioed it codex

just replace the theme name and whatever you want