/* Hide WP version strings from scripts and styles * @return {string} $src * @filter script_loader_src * @filter style_loader_src */ function fjarrett_remove_wp_version_strings( $src ) { global $wp_version; parse_str(parse_url($src, PHP_URL_QUERY), $query); if ( !empty($query['ver']) && $query['ver'] === $wp_version ) { $src = remove_query_arg('ver', $src); } return $src; } add_filter( 'script_loader_src', 'fjarrett_remove_wp_version_strings' ); add_filter( 'style_loader_src', 'fjarrett_remove_wp_version_strings' ); /* Hide WP version strings from generator meta tag */ function wpmudev_remove_version() { return ''; } add_filter('the_generator', 'wpmudev_remove_version'); // Enqueue scripts and styles function wp_theme_main_style() { wp_enqueue_style( 'style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'wp_theme_main_style' ); // Load WP jQuery function insert_jquery(){ wp_enqueue_script('jquery'); } add_filter('wp_footer','insert_jquery'); // Register Custom Navigation Walker require_once('wp_bootstrap_navwalker.php'); //Add support for WordPress 3.0's custom menus add_action( 'init', 'register_my_menu' ); //Register area for custom menu function register_my_menu() { register_nav_menu( 'primary-menu', __( 'Primary Menu' ) ); } // Enable post thumbnails add_theme_support('post-thumbnails'); //Some simple code for our widget-enabled sidebar if ( function_exists('register_sidebar') ) register_sidebar(); //Enable post and comments RSS feed links to head add_theme_support( 'automatic-feed-links' ); /* Login Page */ function loginpage_custom_link() { return get_site_url(); } add_filter('login_headerurl','loginpage_custom_link'); function change_title_on_logo() { return 'Regresar al Inicio'; } add_filter('login_headertitle', 'change_title_on_logo'); add_action("login_head", "my_login_head"); function my_login_head() { echo " "; } function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); add_action( 'after_setup_theme', 'setup' ); function setup() { load_theme_textdomain('litle', get_template_directory()); } /** * Add HTML5 theme support. */ function wpdocs_after_setup_theme() { add_theme_support( 'html5', array( 'search-form' ) ); } add_action( 'after_setup_theme', 'wpdocs_after_setup_theme' ); Opiniones | Little Caesars PR | Pizza Pizza