" накрая if ( ! defined( 'ABSPATH' ) ) { exit; } add_action( 'wp_enqueue_scripts', function () { $parent_handle = 'storefront-style'; // 1) Родителска тема $storefront = wp_get_theme( 'storefront' ); wp_enqueue_style( $parent_handle, get_template_directory_uri() . '/style.css', [], $storefront ? $storefront->get( 'Version' ) : null ); // 2) Child style.css $child_css_path = get_stylesheet_directory() . '/style.css'; wp_enqueue_style( 'storefront-child-style', get_stylesheet_uri(), [ $parent_handle ], file_exists( $child_css_path ) ? filemtime( $child_css_path ) : null ); // 3) Допълнителен CSS (ако съществува) $figma_rel = '/assets/css/figma.css'; $figma_path = get_stylesheet_directory() . $figma_rel; if ( file_exists( $figma_path ) ) { wp_enqueue_style( 'figma-styles', get_stylesheet_directory_uri() . $figma_rel, [ 'storefront-child-style' ], filemtime( $figma_path ) ); } });

Очаквайте скоро!

Нещо интересно предстои...