Reign Theme v5.3.1

= 5.3.1 =
* Fixed: (#339) - customizer settings - fixed Left Sidebar issue
* Enhancement: (#808) Added youzify support
* Fixed (#794) - Deprecated Version on a single group Header 
* Fixed (#806) - excessive load times with REIGN Child Theme 
* Fixed (#804) - Display page Title Setting is not working

Child Theme is also updated in this version
New Files can be download from the following URL to compare the child_enqueue_styles function

https://github.com/wbcomdesigns/reign-child-theme/releases/download/4.0.0/reign-child-theme.zip

Replace

function child_enqueue_styles() {
    $parent_style = 'parent-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 ) );
}
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 );
    } );
}

and use

function child_enqueue_styles() {
    $parent_style = 'parent-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));
}

if (get_stylesheet() !== get_template()) {
    add_filter('pre_update_option_theme_mods_' . get_stylesheet(), function ( $value, $old_value ) {
        global $pagenow;
        if ($pagenow != 'themes.php') {
            update_option('theme_mods_' . get_template(), $value);
        }
        return $value; // update to child theme mods
    }, 10, 2);
}
With BuddyPress, you can build a social network for your company, school, sports team, or niche community.
View All Changelogs: Reign Theme

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.