0byt3m1n1-V2
Path:
/
home
/
yvffpqmy
/
public_html
/
new
/
wp-content
/
themes
/
consua
/
inc
/
[
Home
]
File: consua-theme-setup.php
<?php /** * @Packge : consua * @Version : 1.0 * @Author : consua * @Author URI : https://themeforest.net/user/validthemes/portfolio * */ // Block direct access if ( !defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'consua_setup' ) ){ function consua_setup() { // content width $GLOBALS['content_width'] = apply_filters( 'consua_content_width', 751 ); // language file load_theme_textdomain( 'consua', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // title tag add_theme_support( 'title-tag' ); // post thumbnails add_theme_support( 'post-thumbnails' ); add_image_size( 'consua-shop-single',620,500,true ); // This theme uses wp_nav_menu() in three locations. register_nav_menus( array( 'primary-menu' => esc_html__( 'Primary Menu', 'consua' ), 'footer-menu' => esc_html__( 'Footer Menu', 'consua' ), ) ); //support html5 add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // support post format add_theme_support( 'post-formats', array( 'audio', 'video' ) ); // Custom logo add_theme_support( 'custom-logo' ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Add support for Block Styles. add_theme_support( 'wp-block-styles' ); // Add support for full and wide align images. add_theme_support( 'align-wide' ); // Add support for editor styles. add_theme_support( 'editor-styles' ); // Add support for woocommerce. add_theme_support( 'woocommerce' ); // Enqueue editor styles. add_editor_style( 'assets/css/style-editor.css' ); // Add support for responsive embedded content. add_theme_support( 'responsive-embeds' ); add_image_size( 'consua_830X412', 830, 412, true ); add_image_size( 'consua_359X259', 359, 259, true ); add_image_size( 'consua_598X673', 598, 673, true ); add_image_size( 'consua_598X321', 598, 321, true ); add_image_size( 'consua_284X355', 284, 355, true ); } } add_action( 'after_setup_theme', 'consua_setup' );
©
2018.