• Witajcie,
    po próbie usunięcia informacji o autorze i ilości komentarzy ze strony głównej (zakończonych niepowodzeniem) nie działa mi strona główna 🙁
    http://www.bliskodziecka.com.pl

    Czy ktoś może mi pomóc? 🙂

    oto plik
    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.
    * Learn more: http://codex.wordpress.org/Template_Hierarchy
    *
    * @package ThemeGrill
    * @subpackage ColorNews
    * @since ColorNews 1.0
    */
    ?>

    <?php get_header(); ?>

    <?php do_action( 'colornews_before_body_content’ ); ?>

    <div id=”main” class=”clearfix”>
    <div class=”tg-container”>
    <div class=”tg-inner-wrap clearfix”>
    <div id=”main-content-section clearfix”>
    <div class=”article-content”>

    <?php if ( have_posts() ) : ?>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php

    /*
    * 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() );
    ?>

    <?php endwhile; ?>

    <?php colornews_posts_navigation(); ?>

    <?php else : ?>

    <?php get_template_part( 'template-parts/content’, 'none’ ); ?>

    <?php endif; ?>

    </div><!– #primary end –>
    <?php colornews_sidebar_select(); ?>
    </div><!– #main-content-section end –>
    </div><!– .tg-inner-wrap –>
    </div><!– .tg-container –>
    </div><!– #main –>

    <?php do_action( 'colornews_after_body_content’ ); ?>

    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bliskodziecka

    (@bliskodziecka)

    Grzebane było jeszcze tutaj

    page.php
    <?php
    /**
    * The template for displaying all pages.
    *
    * This is the template that displays all pages by default.
    * Please note that this is the WordPress construct of pages
    * and that other 'pages’ on your WordPress site will use a
    * different template.
    *
    * @package ThemeGrill
    * @subpackage ColorNews
    * @since ColorNews 1.0
    */
    ?>

    <?php get_header(); ?>

    <?php do_action( 'colornews_before_body_content’ ); ?>

    <div id=”main” class=”clearfix”>
    <div class=”tg-container”>
    <div class=”tg-inner-wrap clearfix”>
    <div id=”main-content-section clearfix”>
    <div id=”primary”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( 'template-parts/content’, 'page’ ); ?>

    <?php
    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;
    ?>

    <?php endwhile; // End of the loop. ?>

    </div><!– #primary end –>
    <?php colornews_sidebar_select(); ?>
    </div><!– #main-content-section end –>
    </div><!– .tg-inner-wrap –>
    </div><!– .tg-container –>
    </div><!– #main –>

    <?php do_action( 'colornews_after_body_content’ ); ?>

    <?php get_footer(); ?>

    Thread Starter bliskodziecka

    (@bliskodziecka)

    i tutaj
    single.php
    <?php
    /**
    * The template for displaying all single posts.
    *
    * @package ThemeGrill
    * @subpackage ColorNews
    * @since ColorNews 1.0
    */
    ?>

    <?php get_header(); ?>

    <?php do_action( 'colornews_before_body_content’ ); ?>

    <div id=”main” class=”clearfix”>
    <div class=”tg-container”>
    <div class=”tg-inner-wrap clearfix”>
    <div id=”main-content-section clearfix”>
    <div id=”primary”>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( 'template-parts/content’, 'single’ ); ?>

    <?php colornews_post_navigation(); ?>

    <?php if ( get_the_author_meta( 'description’ ) ) : ?>
    <div class=”author-box”>
    <div class=”author-img”><?php echo get_avatar( get_the_author_meta( 'user_email’ ), '100′ ); ?></div>
    <h4 class=”author-name”><?php the_author_meta( 'display_name’ ); ?></h4>
    <p class=”author-description”><?php the_author_meta( 'description’ ); ?></p>
    <?php if ( get_theme_mod( 'colornews_author_bio_social_sites_show’, 0 ) == 1 )
    colornews_author_social_link();
    ?>
    </div>
    <?php endif; ?>

    <?php if ( get_theme_mod( 'colornews_related_posts_activate’, 0 ) == 1 )
    get_template_part( '/inc/related-posts’ );
    ?>

    <?php
    // If comments are open or we have at least one comment, load up the comment template.
    if ( comments_open() || get_comments_number() ) :
    comments_template();
    endif;
    ?>

    <?php endwhile; // End of the loop. ?>

    </div><!– #primary end –>
    <?php colornews_sidebar_select(); ?>
    </div><!– #main-content-section end –>
    </div><!– .tg-inner-wrap –>
    </div><!– .tg-container –>
    </div><!– #main –>

    <?php do_action( 'colornews_after_body_content’ ); ?>

    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Temat ‘Strona główna nie działa’ jest zamknięty na nowe odpowiedzi.