Я уже все перепробовал, ничего не получилось а задача такая, при изменении в дочернем файле style.css надо что бы изменялось на сайте например изменить цвет фона. Помогите я уже не знаю что делать.
function.php
<?php
// Direct access output
if ( !defined( 'ABSPATH' ) ) exit;
// START ACTION FOR PARENTS
// IS GENERATED AUTOMATICALLY. Do not change or remove the comment markers above or below:
if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):
function chld_thm_cfg_locale_css( $uri ){
if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )
$uri = get_template_directory_uri() . '/rtl.css';
return $uri;
}
endif;
add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );
if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( ) );
wp_enqueue_style( 'my_child_styles', get_stylesheet_directory_uri().'/style.css' );
}
endif;
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
// COMPLETE PARENT ACTION
?>
style.css
/*
Theme Name: PressBook Child
Theme URI: https://scriptstown.com/wordpress-themes/pressbook/
Template: pressbook
Author: ScriptsTown
Author URI: https://scriptstown.com/
Description: PressBook is a multi-purpose WordPress theme suitable for blogs, news, marketing, and educational websites. The theme offers a fully responsive, clean, modern, and pixel-perfect design that can adjust automatically to fit the content elements in the best possible manner for any screen-size device. It has a minimal dependency and offers high performance with quick loading time. It supports double sidebars, single sidebar, footer widgets, eye-catching gradient colors scheme for buttons and top bar, top advertisement banner area with custom header background, and customizable options. Both the sidebars can be configured to be shown on the left or on the right. This theme is great to publish tutorials, documentations, events, status updates, story updates, technology blogs, newsfeed, etc. It comes with sticky sidebars that float with scrolling. The theme supports multiple page templates with page-level layout settings, blog layouts, conditional header block area, page builders, different color settings, footer options, and much more. Also, it comes with three menu locations which include a fully accessible multi-level primary menu with search form, top bar navigation menu, and social links menu. This theme is also great for building school, university, institute, academic, or educational websites.
Version: 1.7.4
*/
.entry-title a {color: #f92c8b !important}
body{
background-color:red;
}
А задача такая, при изменении в дочернем файле style.css надо что бы изменялось на сайте например изменить цвет фона. Помогите я уже не знаю что делать.