Beiträge von akalinke

    Hallo,

    da ich Wordpress vorerst nur als CMS nutze, brauche ich die Kommentarfunktion nicht. Ich habe in den Diskussionseinstellungen das entsprechende Häkchen schon herausgenommen, bloß bleibt auf den einzelnen Seiten auf meiner Homepage:

    http://www.andreaskalinke.de

    immer noch die Kommentarfunktion am unteren Seitenrand bestehen.

    Wenn ich jetzt die page.php bearbeiten will, um dort die Kommentarfunktion abzuschalten, wird die einzelne Seite gar nicht mehr angezeigt.

    Die page.php sieht folgendermaßen aus:

    <?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.
    *
    * @since 1.0.0
    */
    get_header();
    ?>
    <div class="container">
    <div class="row">
    <div id="primary" <?php bavotasan_primary_attr(); ?>>
    <?php
    while ( have_posts() ) : the_post();
    ?>
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <div class="entry-content">
    <?php the_content( __( 'Read more', 'matheson') ); ?>
    </div><!-- .entry-content -->
    <?php get_template_part( 'content', 'footer' ); ?>
    </article><!-- #post-<?php the_ID(); ?> -->
    <?php
    comments_template( '', true );

    endwhile;
    ?>

    </div>
    <?php get_sidebar(); ?>
    </div>
    </div>
    <?php get_footer(); ?>

    Wenn ich die im Internet gefundenen Informationen richtig verstanden habe, muss doch die Zeile:

    <?php
    comments_template( '', true );

    endwhile;
    ?>

    gelöscht werden, um die Kommentarfunktion abzuschalten, oder?

    Viele Grüße

    Andreas