remove_setting( 'interior_designs_theme_color_first' );
$wp_customize->remove_control( 'interior_designs_theme_color_first' );
$wp_customize->remove_setting( 'interior_designs_theme_color_second' );
$wp_customize->remove_control( 'interior_designs_theme_color_second' );
$wp_customize->remove_section( 'interior_designs_discover' );
$wp_customize->remove_section( 'interior_designs_services' );
$wp_customize->remove_section( 'interior_designs_about_theme' );
//About Section
$wp_customize->add_section( 'furniture_interior_about_theme' , array(
'title' => esc_html__( 'About Theme', 'furniture-interior' ),
'priority' => 10,
) );
$wp_customize->add_setting('furniture_interior_demo_link',array(
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('furniture_interior_demo_link',array(
'type'=> 'hidden',
'description' => "
Theme Demo
Our premium version of Furniture Interior has unlimited sections with advanced control fields. Dedicated support and no limititation in any field.
View Demo",
'section'=> 'furniture_interior_about_theme'
));
$wp_customize->add_setting('furniture_interior_doc_link',array(
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('furniture_interior_doc_link',array(
'type'=> 'hidden',
'description' => "Theme Documentation
We have well prepared documentation that provides the general guidelines and suggestions needed for this theme.
View Documentation",
'section'=> 'furniture_interior_about_theme'
));
$wp_customize->add_setting('furniture_interior_forum_link',array(
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('furniture_interior_forum_link',array(
'type'=> 'hidden',
'description' => "Theme Support
Regarding any theme issue, we offer 24/7 support. You can get assistance from our support staff in resolving any problem. Please get in touch with us.
Support Forum",
'section'=> 'furniture_interior_about_theme'
));
}
add_action( 'customize_register', 'furniture_interior_customize_register', 11 );
/* Theme Setup */
if ( ! function_exists( 'furniture_interior_setup' ) ) :
function furniture_interior_setup() {
$GLOBALS['content_width'] = apply_filters( 'furniture_interior_content_width', 640 );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'title-tag' );
add_theme_support( 'wp-block-styles' );
add_theme_support( 'align-wide' );
add_theme_support( 'custom-logo', array(
'height' => 240,
'width' => 240,
'flex-height' => true,
) );
add_image_size('furniture-interior-homepage-thumb',240,145,true);
add_theme_support( 'custom-background', array(
'default-color' => 'f1f1f1'
) );
add_theme_support ('html5', array (
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
) );
add_theme_support('responsive-embeds');
add_theme_support( 'post-formats', array('image','video','gallery','audio',) );
add_editor_style( array( 'css/editor-style.css', interior_designs_font_url() ) );
}
endif;
add_action( 'after_setup_theme', 'furniture_interior_setup' );
function furniture_interior_widgets_init() {
register_sidebar( array(
'name' => __( 'Blog Sidebar', 'furniture-interior' ),
'description' => __( 'Appears on blog page sidebar', 'furniture-interior' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'furniture_interior_widgets_init' );
function furniture_interior_enqueue_comments_reply() {
if( is_singular() && comments_open() && ( get_option( 'thread_comments' ) == 1) ) {
wp_enqueue_script( 'comment-reply', '/wp-includes/js/comment-reply.min.js', array(), false, true );
}
}
add_action( 'wp_enqueue_scripts', 'furniture_interior_enqueue_comments_reply' );
// url
define('FURNITURE_INTERIOR_SITE_URL',__('https://www.themescaliber.com/themes/free-furniture-interior-wordpress-theme','furniture-interior'));
function furniture_interior_credit_link() {
echo "".esc_html__('Furniture Interior WordPress Theme','furniture-interior')."";
}
/* Implement the get started page */
require get_theme_file_path() . '/inc/dashboard/getstart.php';
/* Block Pattern */
require get_theme_file_path() . '/block-patterns.php';