Creating a child theme for bouquet
-
Hi, could someone help me with the code for a child theme. Here’s what I did and it didn’t show up on wordpress. Thanks!
I created a bouquet-child folder in theme. and created a functions.php and posted this in
<?php
/**
* Load the style sheet from the parent theme.
*
*/
function theme_name_parent_styles() {
// Enqueue the parent stylesheet
wp_enqueue_style( ‘theme-name-parent-style’, get_template_directory_uri() . ‘/style.css’, array(), ‘0.1’, ‘all’ );
// Enqueue the parent rtl stylesheet
if ( is_rtl() ) {
wp_enqueue_style( ‘theme-name-parent-style-rtl’, get_template_directory_uri() . ‘/rtl.css’, array(), ‘0.1’, ‘all’ );
}
}
add_action( ‘wp_enqueue_scripts’, ‘theme_name_parent_styles’ );
?>I copied the style.css from the bouquet theme and paste into the bouquet-child theme folder and changed the name
/*
Theme Name: bouquet child
Theme URI: https://wordpress.com/themes/bouquet/
Description: Bouquet is an elegant, simple theme inspired by the beauty found in flowers. Notable features include two floral schemes, a responsive layout structure that adapts to smaller devices, a right sidebar, a full-width template, support for post formats, custom background, and custom header.
Version: 1.2.5
Author: Automattic
Author URI: https://wordpress.com/themes/
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blue, orange, pink, white, light, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, full-width-template, post-formats, rtl-language-support, translation-ready, responsive-layout, photoblogging
*//* =Reset default browser CSS. Based on work by Eric Meyer: https://meyerweb.com/eric/tools/css/reset/index.html
————————————————————– */
- The topic ‘Creating a child theme for bouquet’ is closed to new replies.