Forums

Remove 'reply' tool from pages (8 posts)

  1. wendymello
    Member
    Posted 1 year ago #

    Using the twenty ten theme, I've tried everything I can find in the documentation to remove the 'Leave a Reply' option on my pages. I got it off the home page...but not the rest.

    Your wisdom, please?? The site is http://www.debbiebankspr.com

    Many thanks.

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    edit page.php of Twenty Ten, and remove:

    <?php comments_template( '', true ); ?>

    btw: Twenty Ten as the default theme of wp3 will be overwritten with the next upgrade - and all your theme modification will be lost.
    it is therefore advised to create a child theme: http://codex.wordpress.org/Child_Themes

  3. wendymello
    Member
    Posted 1 year ago #

    Thanks for saving my behind on that one. I didn't realize.

    Since I've modified Twenty Ten without creating a child theme, can I somehow copy what I've got?

    Thanks.

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    Since I've modified Twenty Ten without creating a child theme, can I somehow copy what I've got?

    yes, you can make a new sub-folder in the themes folder (for instance:
    /wp-content/themes/myowntheme ) and copy the full content of the /twentyten folder into it.
    then edit style.css in the new folder and change the name of the theme:
    (create your own inspired name for your theme)

    /*
    Theme Name: My Own Theme
    Theme URI: http://wordpress.org/
    Description: a theme modified from The 2010 theme for WordPress
    Author: the WordPress team, mod wendymello
    Version: 1.1
    Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
    */

    that is all.
    you have to switch over to your 'new' theme in 'dashboard' 'appearance' 'themes'

    ---
    the differnce to a child theme is, that your own copied theme will not get the latest updates which the parent theme might get.

  5. wendymello
    Member
    Posted 1 year ago #

    SWEET!

    THANKS!

  6. wendymello
    Member
    Posted 1 year ago #

    I'm sorry but removing

    <?php comments_template( '', true ); ?>

    did not work.

    Should I remove the 'respond' div from somewhere? I can't find it. :-(

  7. alchymyth
    The Sweeper
    Posted 1 year ago #

    weird - there is nothing else in page.php of Twenty Ten that might cause this.

    did you do the copying of your theme to make it indepandant of upgades?

    did you edit the right page.php?

    (your site is still showing Twenty Ten as your theme)

    ps:
    you can try and use a css method as well;
    add this to style.css of your theme:

    .page #respond{display:none}

  8. wendymello
    Member
    Posted 1 year ago #

    Fantastic! Your final suggestion worked.

    Regarding the secondary problem of the child theme. I've followed the directions. When I activate the new theme I seem to lose logo and some other changes. Is there any automated way to fix that or just start building again.

    Thank you so much for your help! You are a lifesaver!!

Topic Closed

This topic has been closed to new replies.

About this Topic