diff --git a/framework/bootstrap/includes/class-Shoestrap_Options.php b/framework/bootstrap/includes/class-Shoestrap_Options.php index 15a264ba84..a0c2e71a24 100644 --- a/framework/bootstrap/includes/class-Shoestrap_Options.php +++ b/framework/bootstrap/includes/class-Shoestrap_Options.php @@ -1852,6 +1852,13 @@ public function setArguments() { $theme = wp_get_theme(); // For use with some settings. Not necessary. + // Get the parent theme name if needed + if( !empty( $theme->parent_theme ) ){ + $themeName = $theme->parent_theme; + }else{ + $themeName = $theme->name; + } + // $this->args = array( // TYPICAL -> Change these values as you need/desire 'opt_name' => SHOESTRAP_OPT_NAME, @@ -1859,9 +1866,8 @@ public function setArguments() { 'display_version' => $theme->get( 'Version' ), 'menu_type' => 'menu', 'allow_sub_menu' => true, - 'menu_title' => __( 'Shoestrap', 'shoestrap'), - 'page_title' => __('Shoestrap Options', 'shoestrap'), - 'global_variable' => 'redux', + 'menu_title' => $themeName, + 'page_title' => $themeName . __(' Options', 'shoestrap'), 'google_api_key' => 'AIzaSyCDiOc36EIOmwdwspLG3LYwCg9avqC5YLs', diff --git a/functions.php b/functions.php index d14aef7eab..3077cd28b3 100644 --- a/functions.php +++ b/functions.php @@ -22,14 +22,14 @@ define( 'SHOESTRAP_ASSETS_URL', $shoestrap_assets_url ); } -/* - * The option that is used by Shoestrap in the database for all settings. - * - * This can be overriden by adding this in your wp-config.php: - * define( 'SHOESTRAP_OPT_NAME', 'custom_option' ) - */ +// The option that is used by Shoestrap in the database for all settings. if ( ! defined( 'SHOESTRAP_OPT_NAME' ) ) { - define( 'SHOESTRAP_OPT_NAME', 'shoestrap' ); + // Get the parent theme name if needed + if( isset( $theme->parent_theme ) ){ + define( 'SHOESTRAP_OPT_NAME', $theme->parent_theme . '-shoestrap' ); + }else{ + define( 'SHOESTRAP_OPT_NAME', $theme->name . '-shoestrap' ); + } } global $ss_settings;