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-1' => __( 'Primary', 'ofisuport' ), 'menu-2' => __( 'Footer Menu', 'ofisuport' ), ) ); /* * 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 support for responsive embedded content. add_theme_support( 'responsive-embeds' ); // Remove support for block templates. remove_theme_support( 'block-templates' ); } endif; add_action( 'after_setup_theme', 'ofsupxxp_setup' ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ function ofsupxxp_widgets_init() { register_sidebar( array( 'name' => __( 'Footer', 'ofisuport' ), 'id' => 'sidebar-1', 'description' => __( 'Add widgets here to appear in your footer.', 'ofisuport' ), 'before_widget' => '
', 'before_title' => '