Title: donotprint
Last modified: August 20, 2016

---

# donotprint

 *  [fwhpita](https://wordpress.org/support/users/fwhpita/)
 * (@fwhpita)
 * [13 years ago](https://wordpress.org/support/topic/donotprint/)
 * I’m trying to eliminate all the share & comments from the ‘print page’
    It says
   to use these tags: ‘[donotprint]_Text within this tag will not be displayed when
   printing_[/donotprint] But it does not work. Here’s how I placed the tags within
   the Single.php file under the Theme; [donotprint] <?php if (option::get(‘post_share’)
   == ‘on’) { ?> <div class=”sep”> </div> <div class=”sharing”>
 *  <div class=”cleaner”> </div>
    </div><!– end .divider .social –> <?php } ?>
 *  <div class=”cleaner”> </div>
 * <?php if (option::get(‘banner_post_bottom_enable’) == ‘on’) { ?>
    <div class=”
   banner”>
 * <?php if ( option::get(‘banner_post_bottom_html’) <> “”) { echo stripslashes(
   option::get(‘banner_post_bottom_html’));
    } else { ?> ” rel=”nofollow” title=”
   <?php echo option::get(‘banner_post_bottom_alt’); ?>”><img src=”<?php echo option::
   get(‘banner_post_bottom’); ?>” alt=”<?php echo option::get(‘banner_post_bottom_alt’);?
   >” /> <?php } ?> </div><!– end .banner –> <?php } ?> </div><!– end .box –> <?
   php if ($showauthor == ‘Yes’) { ?> <!– I removed the author box –>
 * <?php } // if author information should be shown ?>
 * <?php if (option::get(‘post_comments’) == ‘on’) { ?>
 *  <?php comments_template(); ?>
 * <?php } ?>
    </div><!– end #single –>
 *  <div class=”cleaner”> </div>
 *  <?php endwhile; else: ?>
 * <p><?php _e(‘Sorry, no posts matched your criteria’, ‘wpzoom’);?>.</p>
    <?php
   endif; ?> </div><!– end #main –>
 *  <?php if ($template != ‘full’) { ?>
    <div id=”sidebar”> <?php get_sidebar();?
   >
 *  </div><!– end #sidebar –>
    <?php } //if template is not full width ?> <div class
   =”cleaner”> </div>
 *  </div><!– end .wrapper –>
    </div><!– end #content –> </div><!– end #frame –>
   <?php get_footer(); ?> [/donotprint]
 * Please help.
    Thanks Bill
 * [http://wordpress.org/extend/plugins/wp-print/](http://wordpress.org/extend/plugins/wp-print/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [JulieMarie](https://wordpress.org/support/users/juliemarie/)
 * (@juliemarie)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/donotprint/#post-3615758)
 * I too would like to know how to filter the share options out of the print page.
 *  [tami73](https://wordpress.org/support/users/tami73/)
 * (@tami73)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/donotprint/#post-3615784)
 * I managed to do it by hiding the share options with css. Just find the div id
   of the share options with firebug then use display:none in print-css to remove
   it. In my case I use sharebar so I added this and it worked
 * ul#sharebar {display:none;}
 * You will probably need to do this again when you update the plugin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘donotprint’ is closed to new replies.

 * ![](https://ps.w.org/wp-print/assets/icon.svg?rev=978022)
 * [WP-Print](https://wordpress.org/plugins/wp-print/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-print/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-print/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-print/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-print/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-print/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [tami73](https://wordpress.org/support/users/tami73/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/donotprint/#post-3615784)
 * Status: not resolved