Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #2200065
child theme
Closed

Comments

  • VisibleSites started the conversation

    Hi. I'm trying to set up a child theme. I'm using 

    <?php
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
     
        $parent_style = 'scalia-style';
     
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style ),
            wp_get_theme()->get('Version')
        );
    }


    in functions. I tried using 'scalia-style' to enqueue style but its breaking site. What should I use to set up child theme properly? Many thanks.

  •  7,280
    Oliver replied

    Hi,

    Child theme in attach 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver