WordPress.org

Ready to get started?Download WordPress

Forums

WP-EMail
[resolved] Remove comments from e-mail page (3 posts)

  1. aliceandcaligula
    Member
    Posted 1 year ago #

    Hey there,

    I've done a lot of adjusting in language and appearance but I couldn't figure out, how to get rid of the comments-section on /emailpage/. It seems like it uses the same options like the referring post/page.

    Any ideas?

    Thank you,
    Jana

    http://wordpress.org/extend/plugins/wp-email/

  2. aliceandcaligula
    Member
    Posted 1 year ago #

    I created the necessary "email.php" file (just copied the no-sidebar template from my theme) and removed
    <?php if(function_exists('wp_email')) { email_link(); } ?>
    and
    <?php comments_template( '', true ); ?>

    Just put it back in my themes folder and here we go!

  3. Dave
    Member
    Posted 1 year ago #

    In my case, I suppressed the comments on the email page by:

    1. copy file "page.php" into my theme folder as "email.php"
    2. in file "email.php", changed one line:
    --- from: <?php comments_template(); ?>
    ----- to: `<?php /* comments_template(); */ ?>'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic