Theme Author
Guido
(@guido07111975)
Hi Mathias,
What do you want to change? Is it CSS only or also the structure of the theme?
In case of CSS only you don’t have to create a child theme, but add your custom CSS at the custom CSS page in your Customizer.
Guido
Hello, i tried to insert the search box into the footer section.
So i have to change the functions.php
( see example here https://www.wpbeginner.com/wp-tutorials/how-to-add-search-form-in-your-post-with-a-wordpress-search-shortcode/ )
Marhias
Theme Author
Guido
(@guido07111975)
Hi,
Create a new folder called “bluegray-child” and copy-paste files functions and style from parent BlueGray theme. Make both files empty.
Add this in the empty file style:
/*
Theme Name: BlueGray Child
Description: Child Theme of BlueGray.
Version: 1.0
Author: Mathias
Template: bluegray
*/
/* Underneath you can add your own custom CSS */
Add this in the empty file functions:
<?php
/*
* Child Theme functions and definitions.
*/
// Get stylesheet from parent theme
function bluegray_extra_scrips() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'bluegray_extra_scrips' );
// Underneath you can add your own custom functions
?>
Zip folder and install it as a normal theme.
Guido