WordPress Plugin to Suppress Skimlinks Output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function skim_suppress( $paras = '', $content = '' ) { | |
return '<div class="noskim">'. do_shortcode( $content ) . '</div>'; | |
} | |
add_shortcode( 'noskim', 'skim_suppress' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this code to your theme's
functions.php
and then wrap the shortcodes tags[noskim][/noskim]
around any text, where you don't wish Skimlinks output to be added.https://artiss.blog/2012/02/how-to-suppress-skimlinks-for-some-content-in-wordpress/