get('Version') ); define( 'WPBF_CHILD_VERSION', wp_get_theme( 'wpbf-child' )->get('Version') ); /** * Theme Setup */ function wpbf_theme_setup() { // Textdomain load_theme_textdomain( 'page-builder-framework', get_template_directory() . '/languages' ); // Custom Logo add_theme_support( 'custom-logo', array( 'width' => 180, 'height' => 48, 'flex-width' => true, 'flex-height' => true, ) ); // Custom Background add_theme_support( 'custom-background', array( 'default-color' => 'ffffff', 'default-image' => '', 'default-repeat' => 'repeat', 'default-position-x' => 'left', 'default-position-y' => 'top', 'default-size' => 'auto', 'default-attachment' => 'scroll', ) ); // Title Tag add_theme_support( 'title-tag' ); // Editor Styles add_theme_support( 'editor-styles' ); // Post Thumbnails add_theme_support( 'post-thumbnails' ); // Automatic Feed Links add_theme_support( 'automatic-feed-links' ); // HTML5 Support add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'gallery', 'caption' ) ); // Selective Refresh for Widgets add_theme_support( 'customize-selective-refresh-widgets' ); // Nav Menu's register_nav_menus( array( 'main_menu' => __( 'Main Menu', 'page-builder-framework' ), 'mobile_menu' => __( 'Mobile Menu', 'page-builder-framework' ), 'pre_header_menu' => __( 'Pre Header Left', 'page-builder-framework' ), 'pre_header_menu_right' => __( 'Pre Header Right', 'page-builder-framework' ), 'footer_menu' => __( 'Footer Left', 'page-builder-framework' ), 'footer_menu_right' => __( 'Footer Right', 'page-builder-framework' ) ) ); } add_action( 'after_setup_theme', 'wpbf_theme_setup' ); /** * Content Width */ if ( ! isset( $content_width ) ) { $content_width = 1200; } /** * Sidebar */ function wpbf_sidebars() { register_sidebar( array( 'name' => __( 'Sidebar', 'page-builder-framework' ), 'id' => 'sidebar-1', 'before_widget' => '
', 'before_title' => '