Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

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.

  •  6,933
    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