Support » Theme: Enigma » Enigma child theme

  • Hi,
    Issues with child theme (Enigma 7.1.3): slider, portolio and services are lost.
    My functions.php file is the same you gave 7 months ago:
    —————-
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘enigma_child_enqueue_styles’ );
    function enigma_child_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    if ( get_stylesheet() !== get_template() ) {
    add_filter( ‘pre_update_option_theme_mods_’ . get_stylesheet(), function ( $value, $old_value ) {
    update_option( ‘theme_mods_’ . get_template(), $value );
    return $old_value; // prevent update to child theme mods
    }, 10, 2 );
    add_filter( ‘pre_option_theme_mods_’ . get_stylesheet(), function ( $default ) {
    return get_option( ‘theme_mods_’ . get_template(), $default );
    } );
    }
    ?>
    ———–
    Thanks for your kind help

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