ocommerce'); add_theme_support('title-tag'); /** * Add support for LearnPress */ add_filter( 'learn-press/override-templates', function(){ return true; } ); /** * Add support for post thumbnails. */ add_theme_support('post-thumbnails'); /** * Add custom image size */ add_image_size( 'guto_lite_post_thumb', 542, 542, true ); add_image_size( 'guto_lite_single_post_thumb', 790, 450, true ); add_image_size( 'guto_lite_thumb_size', 790, 450, true ); add_image_size( 'guto_lite_dm_thumb_size', 750, 500, true ); add_image_size( 'guto_lite_thumb_size_550', 550, 550, true ); add_image_size( 'guto_lite_banner_thumb_size', 1500, 800, true ); add_image_size( 'guto_lite_fls_thumb_size_640*500', 640, 500, true ); add_image_size( 'guto_lite_fls_thumb_size', 550, 500, true ); add_image_size( 'guto_lite_fls_550*700', 550, 700, true ); add_image_size( 'guto_lite_fls_550*450', 550, 450, true ); add_image_size( 'guto_lite_fls_550*400', 550, 400, true ); add_image_size( 'guto_lite_fls_thumb_640*710', 640, 710, true ); add_image_size( 'guto_lite_fls_thumb_size_1920*900', 1920, 900, true ); add_image_size( 'guto_lite_fls_640*370', 640, 370, true ); add_image_size( 'guto_lite_single_post_thumb_1000*600', 1000, 600, true ); add_image_size( 'guto_lite_ls_post_thumb', 500, 280, true ); if ( class_exists( 'LearnPress' ) ): add_image_size( 'guto_banner_course_size', 720, 680, true ); add_image_size( 'guto_oe_blog_thumb_size', 720, 780, true ); add_image_size( 'guto_course_size_775_500', 775, 580, true ); endif; /** * Register nav menus. */ register_nav_menus( array( 'primary' => esc_html__('Primary Menu', 'guto-lite'), 'footer' => esc_html__('Footer Menu', 'guto-lite'), ) ); /* * 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. $args = array( 'default-color' => 'fff', 'default-image' => '', ); add_theme_support( 'custom-background', $args ); // Set up the WordPress core custom header feature. add_theme_support( 'custom-header' ); /* * Enable support for wide alignment class for Gutenberg blocks. */ add_theme_support( 'align-wide' ); /** * Registers an editor stylesheet for the theme. */ add_editor_style( 'custom-editor-style.css' ); } add_action('after_setup_theme', 'guto_lite_setup'); } // Default main menu function default_main_menu(){ echo '
'; } // Include necessary files include_once get_template_directory() . '/inc/init.php'; // Post content limit function guto_read_more($limit) { $post_content = explode(' ' , get_the_content()); $less_content = array_slice($post_content, 0, $limit); echo implode(' ', $less_content); } add_action( 'admin_menu', 'guto_lite_remove_theme_settings', 999 ); function guto_lite_remove_theme_settings() { remove_submenu_page( 'themes.php', 'fw-settings' ); } // Block Patterns. require get_template_directory() . '/inc/block-patterns.php'; // Block Styles. require get_template_directory() . '/inc/block-styles.php'; add_theme_support( "wp-block-styles" ); add_theme_support( "responsive-embeds" ); add_theme_support( "custom-logo" ); XML-RPC server accepts POST requests only.