| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/truewayi/public_html/wp-content/themes/omexo/inc/ |
Upload File : |
<?php
if ( ! function_exists( 'omexo_setup' ) ){
function omexo_setup() {
load_theme_textdomain( 'omexo', get_template_directory() . '/languages' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'woocommerce' );
//Custom Image Size
add_image_size('omexo-blog-thumb', 1200, 600, true );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'main-menu' => esc_html__( 'Primary Menu', 'omexo' ),
'category-menu' => esc_html__( 'Category Menu', 'omexo' )
) );
/*
* Switch default core markup for search form, comment form, and comments
* 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( 'omexo_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
// Shortcode on widgets
add_filter('widget_text', 'do_shortcode');
/**
* Add support for core custom logo
*/
add_theme_support( 'custom-logo', array(
'height' => 36,
'width' => 198,
'flex-width' => true,
'flex-height' => true,
) );
//Gutenberg support
add_theme_support(
'gutenberg',
array( 'wide-images' => true )
);
add_theme_support( 'align-wide' );
add_theme_support( 'wp-block-styles' );
add_theme_support( 'editor-color-palette', array(
array(
'name' => 'strong violet',
'slug' => 'strong-violet',
'color' => '#302e4e',
),
array(
'name' => 'lighter violet',
'slug' => 'lighter-violet',
'color' => '#7974b5',
),
array(
'name' => 'strong blue',
'slug' => 'strong-blue',
'color' => '#0862a2',
),
array(
'name' => 'lighter-blue',
'slug' => 'lighter-blue',
'color' => '#189bf8',
)
) );
}
}
add_action( 'after_setup_theme', 'omexo_setup' );
/**
* Set the content width in pixels, based on the theme's design and stylesheet.
*/
function omexo_content_width() {
$GLOBALS['content_width'] = apply_filters( 'omexo_content_width', 640 );
}
add_action( 'after_setup_theme', 'omexo_content_width', 0 );