• Resolved qnmai

    (@qnmai)


    I have attempted to create a Quality child theme to move forward on customizing my site. I am currently building my site locally using MAMP. After creating a new folder in my themes directory “quality-child” and copying styles.css. I deleted everything and added this:

    /*
     Theme Name:   Quality Child
     Description:  Quality Child Theme
     Author:       Me
     Template:     Quality
     Version:      1.0.0
     License:      GNU General Public License v2 or later
     License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    */
    @import url(".../quality/style.css");

    Some of the elements of the theme don’t work anymore (for example, the service icons are all strange looking and the feature products images don’t zoom). What did I do wrong?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi

    please copy given below style.css code and replace your child theme
    style.css code with this given below code.

    /*
    Theme Name: quality-lite child
    Theme URI: https://example.com/twenty-fourteen-child/
    Author: abc
    Author URI: https://example.com
    Template: quality-lite
    Version: 1.0.0
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: twenty-fourteen-child
    */
    @import url(“../put here your parent thime package folder name/style.css”);

    if you have any confusion for that then let me know.

    Thank’s

    Sunil

    Thread Starter qnmai

    (@qnmai)

    The code you provided did not work, because I’m not using quality-lite. This did however work (my original code had Quality, whereas I should have put quality).

    /*
    Theme Name: quality child
    Theme URI: https://example.com/twenty-fourteen-child/
    Author: abc
    Author URI: https://example.com
    Template: quality
    Version: 1.0.0
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: twenty-fourteen-child
    */
    @import url("../put here your parent thime package folder name/style.css");

    Hi

    Kindly tell me the name of your theme directory name .

    To create child theme follow this link

    https://codex.www.ads-software.com/Child_Themes

    https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/

    Thanks

    Thread Starter qnmai

    (@qnmai)

    I did follow the link you provided. The code I posted just above works.

    The theme directory name is “quality.”

    Hi

    To create child theme follow given instruction .

    1 Crate quality-child folder (if your parent theme directory name is quality).

    2 Create style.css in child theme directory .
    Copy past the below code into style.css file .

    /*
    Theme Name: quality child
    Theme URI: https://example.com/quality
    Author: abc
    Author URI: https://example.com
    Template: quality
    Version: 1.0.0
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: qaility
    */

    3 Then create functions.php file in your child theme directory .

    Copy past the given below code .

    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
    function enqueue_parent_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }

    Let me know for any confusion .

    Thanks
    Akhilesh

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘creating Quality child theme’ is closed to new replies.