• I’m completely new to WP and have been playing with a few templates looking for a minimalist layout for my photography. I found Coraline and so far it’s looking pretty good.

    I’m trying to figure out how to remove the commenting section (actually from the ‘Edit’ option beneath the post down through the commenting area. I’d like it to display my images and then go straight to the footer widgets.

    Would someone be able to tell me what code I need to remove to do this?

    http://oughttobeshotphotography.com/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try editing the theme’s template files and removing <?php comments_template();?> and<?php comments_popup_link();?>`.

    Thread Starter SoulBrother

    (@soulbrother)

    I figured it out just now. In each page there is an option to turn off the ability to comment. This also removes that section. I thought I had tried it before. Sorry.

    Now I’m trying to figure out how to designate a page as the “home page” because there are widgets which I do not wish to appear the only the “home page”. Even though I have a page set as the very first page to appear apparently it’s not acting as said homepage.

    Have you reviewed Creating_a_Static_Front_Page?

    Thread Starter SoulBrother

    (@soulbrother)

    I did but it doesn’t seem to remove the code for the widget. It’s on the main page at the bottom. The follow widget.

    You’d need to surround the widget-capable area of your footer with a condtional to stop it loading on the home page:

    <?php if( !is_home() && !is_front_page() ) :?>
    [dynamic sidebar code]
    <?php endif;?>

    should do it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing Comments functions’ is closed to new replies.