at path:
ROOT
/
wp-content
/
themes
/
kroth
/
inc
/
theme-support.php
run:
R
W
Run
core
DIR
2023-04-17 09:50:05
R
W
Run
plugins
DIR
2023-04-17 09:50:05
R
W
Run
theme-options
DIR
2023-04-17 09:50:05
R
W
Run
backend-functions.php
6.37 KB
2023-04-17 09:50:05
R
W
Run
Delete
Rename
enqueue-files.php
3.33 KB
2023-04-17 09:50:05
R
W
Run
Delete
Rename
frontend-functions.php
14.61 KB
2023-04-17 09:50:05
R
W
Run
Delete
Rename
init.php
1.14 KB
2023-04-17 09:50:05
R
W
Run
Delete
Rename
theme-support.php
1.86 KB
2023-04-17 09:50:05
R
W
Run
Delete
Rename
error_log
up
📄
theme-support.php
Save
<?php /* * All theme related setups here. * Author & Copyright: VictorThemes * URL: https://victorthemes.com */ /* Set content width */ if ( ! isset( $content_width ) ) $content_width = 1170; /* Register menu */ register_nav_menus( array( 'primary' => __( 'Main Navigation', 'kroth' ) ) ); /* Thumbnails */ add_theme_support( 'post-thumbnails' ); /* Post formats */ add_theme_support( 'post-formats', array( 'gallery', 'image' ) ); /* Feeds */ add_theme_support( 'automatic-feed-links' ); /* Add support for Title Tag. */ add_theme_support( 'title-tag' ); /* HTML5 */ add_theme_support( 'html5', array( 'gallery', 'caption' ) ); /* WooCommerce */ add_theme_support( 'woocommerce' ); /* Breadcrumb Trail Support */ add_theme_support( 'breadcrumb-trail' ); /* Extend wp_title */ function kroth_theme_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $site_name = get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_front_page() ) ) $title = "$site_name $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$site_name $sep" . sprintf( __( ' Page %s', 'kroth' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'kroth_theme_wp_title', 10, 2 ); /* Languages */ function kroth_theme_language_setup(){ load_theme_textdomain( 'kroth', get_template_directory() . '/languages' ); } add_action('after_setup_theme', 'kroth_theme_language_setup'); /* Slider Revolution Theme Mode */ if(function_exists( 'set_revslider_as_theme' )){ add_action( 'init', 'kroth_theme_revslider' ); function kroth_theme_revslider() { set_revslider_as_theme(); } } /* Visual Composer Theme Mode */ if(function_exists('vc_set_as_theme')) vc_set_as_theme();