• Как вставить шапку (изображение) в шаблон Wordpress?

    @Mr_Ultraz Автор вопроса
    В этом шаблоне какой-то странный header.php и index.php

    header.php
    <?php
    /**
     * The header for our theme.
     *
     * This is the template that displays all of the <head> section and everything up until <div id="content">
     *
     * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     *
     * @package Preschool_and_Kindergarten
     **
     *
         * Doctype Hook
         * 
         * @hooked preschool_and_kindergarten_doctype_cb
        */
        do_action( 'preschool_and_kindergarten_doctype' );
    ?>
    
    <head itemscope itemtype="http://schema.org/WebSite">
    
    <?php 
        /**
         * Before wp_head
         * 
         * @hooked preschool_and_kindergarten_head
        */
        do_action( 'preschool_and_kindergarten_before_wp_head' );
    
        wp_head(); 
    ?>
    </head>
    
    <body <?php body_class(); ?> itemscope itemtype="http://schema.org/WebPage">
    		
        <?php
        wp_body_open();
        
        /**
        * @hooked preschool_and_kindergarten_page_start 
        */
        do_action( 'preschool_and_kindergarten_before_page_start' ); 
        
        /**
        * preschool_and_kindergarten Header Top
        * 
        * @hooked preschool_and_kindergarten_mobile_navigation_header  - 5
        * @hooked preschool_and_kindergarten_header_start  - 10
        * @hooked preschool_and_kindergarten_header_top    - 20
        * @hooked preschool_and_kindergarten_header_bottom - 30
        * @hooked preschool_and_kindergarten_header_end    - 40    
        */	    
        
        do_action( 'preschool_and_kindergarten_header' ); 
        
        /**
        * After Header
        * 
        * @hooked preschool_and_kindergarten_page_header
        */
        do_action( 'preschool_and_kindergarten_after_header' );


    index.php
    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * E.g., it puts together the home page when no home.php file exists.
     *
     * @link https://codex.wordpress.org/Template_Hierarchy
     *
     * @package Preschool_and_Kindergarten
     */
    
    get_header(); ?>
    
    	<div id="primary" class="content-area">
    		<main id="main" class="site-main" role="main">
    
    		<?php
    		if ( have_posts() ) :
    
    			/* Start the Loop */
    			while ( have_posts() ) : the_post();
    
    				/*
    				 * Include the Post-Format-specific template for the content.
    				 * If you want to override this in a child theme, then include a file
    				 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    				 */
    				get_template_part( 'template-parts/content', get_post_format() );
    
    			endwhile;
               preschool_and_kindergarten_pagination();
    
    		else :
    
    			get_template_part( 'template-parts/content', 'none' );
    
    		endif; ?>
    
    		</main><!-- #main -->
    	</div><!-- #primary -->
    
    <?php
    get_sidebar();
    get_footer();
    Ответ написан
    Комментировать