• Home
  • How to Support datSplat!
  • Privacy Policy
  • Terms of Use
  • Contact
datSplat!

datSplat!

RANDOM TIDBITS

  • Home
  • How to Support datSplat!
  • Privacy Policy
  • Terms of Use
  • Contact

Removing Images and Adsense from wp-print

WordPress

To not have images or adsense show up on print friendly pages with wp-print.php plug-in for WordPress—

After:
$content = str_replace(']]>', ']]>', $content);

insert:
$content = strip_tags($content, '<p><b><i><a><ul><li><pre><hr><blockquote>');

(I also inserted <br> into the list. The above are the tags you are allowing on the print formatted page.)

See here for more info.

Thanks yet again to lesterchan.net for not only the plug-in, but for the awesome support.

Share the post "Removing Images and Adsense from wp-print"

  • Facebook
  • Pinterest
  • Reddit
  • Twitter
  • Bookmark

Categories

©datSplat 2006-2021
Aedyn LLC
As an Amazon Associate, this site earns money from qualifying purchases. This money helps to support this site. Thank you for your continued support! Please note: Ideas, advice, and recipes should be used at your own risk.
Proudly powered by WordPress | Theme: Doo by ThemeVS.