Onhan sulla lapsiteeman functions.php:ssaMulla oli siihen yritys, jossa oli eri otseketiedot kuin alkuperäisessä ja tein mielestäni ohjeen mukaan. Katsomasi oli kopio alkuperäisestä. Muutin vielä kerran:
Mutta sama tulos ts. lapsiteeman css:ää ei lueta. Asialla tosin on vain periaatteellista merkitystä.Koodi:/* Theme Name: Screenr Child Theme Theme URI: https://www.famethemes.com/themes/screenr Author: FameThemes Author URI: https://www.famethemes.com Description: Screenr Child Theme Version: 1.2.3 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Template: screenr Tested up to: 5.0 Requires PHP: 5.6 Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, editor-style, featured-image-header, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, portfolio This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. Screenr is based on Underscores http://underscores.me/, (C) 2016 Automattic, Inc. Underscores is distributed under the terms of the GNU GPL v2 or later. Normalizing styles have been helped along thanks to the fine work of Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ */
Koodi:
add_action('wp_enqueue_scripts', function() {
wp_enqueue_style(
'screenr-child',
get_stylesheet_uri(),
['screenr-style'],
wp_get_theme()->get('Version')
);
});
ja lapsiteeman style.css headeriksi taitaa riittää:
Koodi:
/**
Theme Name: Screenr Child Theme
Version: 1.2.3
Template: screenr
*/