tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support('title-tag'); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support('post-thumbnails'); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'menu-primary' => __('Principal', 'valier'), 'menu-legal' => __('Legal', 'valier') ) ); /* * 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', 'style', 'script', ) ); // Add theme support for selective refresh for widgets. add_theme_support('customize-selective-refresh-widgets'); // Add support for editor styles. add_theme_support('editor-styles'); // Enqueue editor styles. add_editor_style('style-editor.css'); add_editor_style('style-editor-extra.css'); // Add support for responsive embedded content. add_theme_support('responsive-embeds'); // Add support for custom logo add_theme_support('custom-logo'); add_theme_support('custom-header'); // Remove support for block templates. remove_theme_support('block-templates'); //hidden ACF add_filter('acf/settings/show_admin', '__return_false'); } endif; add_action('after_setup_theme', 'vlr_setup'); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function vlr_widgets_init() { register_sidebar( array( 'name' => __('Pie', 'valier'), 'id' => 'footer-sidebar', 'description' => __('Añade los widgets para mostrarse en el pie', 'valier'), 'before_widget' => '', 'before_title' => '