• 4blkstars

    (@4blkstars)


    I know Eksell is an outdated theme , yet the build is simple nd effective…

    HOWEVER I wanted to find out what code is being used to create a child theme as nothing seems to be working for me?

    Is this accurate?

    function eksell_child_enqueue_styles() {
    wp_enqueue_style('eksell-parent-style', get_template_directory_uri() . '/style.css');
    wp_enqueue_style('eksell-child-style', get_stylesheet_directory_uri() . '/style.css', array('eksell-parent-style'));
    }
    add_action('wp_enqueue_scripts', 'eksell_child_enqueue_styles');
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @4blkstars,

    You don’t need to enqueue the Eksell style sheet in your child theme – this code should do it:

    function eksell_child_enqueue_styles() {
    wp_enqueue_style('eksell-child-style', get_stylesheet_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'eksell_child_enqueue_styles', 20 );

    — Anders

    Thread Starter 4blkstars

    (@4blkstars)

    thanks @anlino!

    would love to see future updates if necessary as having a legacy theme that allows “both blocks and classic build support is GOLD!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.