parent()->get('Version'));
wp_enqueue_style( 'beauty-store-style', get_stylesheet_uri(), array( $beauty_store_parentcss ), $beauty_store_theme->get('Version'));
require get_theme_file_path( '/custom-option.php' );
wp_add_inline_style( 'beauty-store-style',$beauty_store_theme_css );
require get_parent_theme_file_path( '/custom-option.php' );
wp_add_inline_style( 'beauty-cosmetic-store-style',$beauty_cosmetic_store_theme_css );
wp_enqueue_script( 'comment-reply', '/wp-includes/js/comment-reply.min.js', array(), false, true );
}
add_action( 'wp_enqueue_scripts', 'beauty_store_enqueue_styles' );
if ( ! function_exists( 'beauty_store_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function beauty_store_setup() {
add_theme_support( 'responsive-embeds' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
add_image_size('beauty-store-featured-header-image', 2000, 660, true);
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'beauty_cosmetic_store_custom_background_args', array(
'default-color' => '',
'default-image' => '',
) ) );
/**
* Add support for core custom logo.
*
* @link https://codex.wordpress.org/Theme_Logo
*/
add_theme_support( 'custom-logo', array(
'height' => 50,
'width' => 50,
'flex-width' => true,
) );
add_editor_style( array( '/editor-style.css' ) );
add_theme_support( 'align-wide' );
add_theme_support( 'wp-block-styles' );
add_action('wp_ajax_beauty_store_dismissable_notice', 'beauty_store_dismissable_notice');
}
endif;
add_action( 'after_setup_theme', 'beauty_store_setup' );
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function beauty_store_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'beauty-store' ),
'id' => 'sidebar',
'description' => esc_html__( 'Add widgets here.', 'beauty-store' ),
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'beauty_store_widgets_init' );
function beauty_store_remove_customize_register() {
global $wp_customize;
$wp_customize->remove_setting('pro_version_slider_setting');
$wp_customize->remove_control('pro_version_slider_setting');
$wp_customize->remove_setting('pro_version_logo');
$wp_customize->remove_control('pro_version_logo');
$wp_customize->remove_setting('pro_version_color_setting');
$wp_customize->remove_control('pro_version_color_setting');
$wp_customize->remove_setting('pro_version_general_setting');
$wp_customize->remove_control('pro_version_general_setting');
$wp_customize->remove_setting('pro_version_social_setting');
$wp_customize->remove_control('pro_version_social_setting');
$wp_customize->remove_setting('pro_version_top_header_setting');
$wp_customize->remove_control('pro_version_top_header_setting');
$wp_customize->remove_setting('pro_version_header_setting');
$wp_customize->remove_control('pro_version_header_setting');
$wp_customize->remove_setting('pro_version_service_setting');
$wp_customize->remove_control('pro_version_service_setting');
$wp_customize->remove_setting('pro_version_menu_setting');
$wp_customize->remove_control('pro_version_menu_setting');
$wp_customize->remove_setting('pro_version_post_setting');
$wp_customize->remove_control('pro_version_post_setting');
$wp_customize->remove_setting('pro_version_page_setting');
$wp_customize->remove_control('pro_version_page_setting');
$wp_customize->remove_setting('pro_version_footer_setting');
$wp_customize->remove_control('pro_version_footer_setting');
}
add_action( 'customize_register', 'beauty_store_remove_customize_register', 11 );
function beauty_store_remove_my_action() {
remove_action( 'remove_menu_page','beauty-cosmetic-store-info' );
remove_action( 'admin_menu','beauty_cosmetic_store_demo_importer_admin_page' );
remove_action( 'admin_enqueue_scripts', 'beauty_cosmetic_store_getpage_css' );
remove_action( 'admin_notices', 'beauty_cosmetic_store_deprecated_hook_admin_notice' );
}
add_action( 'after_setup_theme', 'beauty_store_remove_my_action');
function beauty_store_remove_parent_theme_hooks() {
remove_action('init', 'beauty_store_remove_my_action');
}
add_action('after_setup_theme', 'beauty_store_remove_parent_theme_hooks', 20);
add_action('admin_menu', 'beauty_store_remove_my_theme_page', 999);
function beauty_store_remove_my_theme_page() {
remove_submenu_page('themes.php','beauty-cosmetic-store-info');
}