• 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

    https://www.ads-software.com/extend/plugins/wp-print/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I too would like to know how to filter the share options out of the print page.

    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.