• Resolved trm2000

    (@trm2000)


    Hello Guido,

    may you can help me to create a child theme of blue gray theme please?

    Greeting Mathias

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter trm2000

    (@trm2000)

    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

    Thread Starter trm2000

    (@trm2000)

    Thank you very much ??

    • This reply was modified 5 years, 3 months ago by trm2000.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Child Theme’ is closed to new replies.