Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress Plugin to Suppress Skimlinks Output
<?php
function skim_suppress( $paras = '', $content = '' ) {
return '<div class="noskim">'. do_shortcode( $content ) . '</div>';
}
add_shortcode( 'noskim', 'skim_suppress' );
?>
@dartiss

This comment has been minimized.

Copy link
Owner Author

@dartiss dartiss commented Nov 15, 2017

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment