Blog
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
<?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://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package BRPP_prawo_podatki
|
||||
*/
|
||||
|
||||
get_header();
|
||||
if ( is_home() && get_option('page_for_posts') == 27 ) {
|
||||
get_template_part('blog');
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php get_header(); ?>
|
||||
<main id="primary" class="site-main">
|
||||
<div class="container">
|
||||
<?php
|
||||
@@ -51,7 +42,6 @@ get_header();
|
||||
?>
|
||||
</div>
|
||||
</main><!-- #main -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
get_footer();
|
||||
|
||||
Reference in New Issue
Block a user