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
- The topic ‘donotprint’ is closed to new replies.