• Hello,
    I am using twenty-eleven and would like to remove the Leave A Reply section from the static front page. Can you tell me where to find this, and what to remove please.
    Thankyou for your help
    Neil

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    First, do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    – to remove ‘Leave a reply’

    edit content.php, and remove:

    `<?php if ( comments_open() ) : ?>
    <?php if ( $show_sep ) : ?>
    <span class=”sep”> | </span>
    <?php endif; // End if $show_sep ?>
    <span class=”comments-link”><?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a reply’, ‘twentyeleven’ ) . ‘</span>’, __( ‘<b>1</b> Reply’, ‘twentyeleven’ ), __( ‘<b>%</b> Replies’, ‘twentyeleven’ ) ); ?></span>
    <?php endif; // End if comments_open() ?>`

    You can disable commenting on your site by going to :
    Settings >> Discussion >> uncheck “Allow people to post comments on new articles”.
    There are some other options too that you can change.

    Thread Starter elyman

    (@elyman)

    Hello,
    Thankyou so much for your amazingly swift responses. I am exceptionally grateful for you help.
    Regards
    Neil

    Moderator t-p

    (@t-p)

    Glad to be of help ??

    Thread Starter elyman

    (@elyman)

    Hello,
    The support above has stopped “Leave A Reply” on other pages, but it is still on the bottom of the front, Home page. If you can guide me further I will be very grateful.
    Thankyou
    Neil

    Moderator t-p

    (@t-p)

    try editing the template of your front page

    Thread Starter elyman

    (@elyman)

    Hello Tara,
    I did have a look at this but I am not sure which is the template for my front page. I thought it was Default but I can’t see a default page template?
    I do hope this makes some sense.
    Thankyou for helping.
    Regards
    Neil

    Moderator t-p

    (@t-p)

    – it may be titlted home.php

    Thread Starter elyman

    (@elyman)

    Hello Tara,
    No, I don’t see home.php. I am using theme TwentyEleven which ships with WP if that helps.
    I see page.php; index.php; single.php; content-page.php?
    Thankyou
    Neil

    Moderator t-p

    (@t-p)

    you can use contional tag so that the stuff you dont want is excluded from the front page:

    <?php is_front_page(); ?>

    documentation: https://codex.www.ads-software.com/Function_Reference/is_front_page

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Remove 'Leave a Reply' section?’ is closed to new replies.