Skip to content

Instantly share code, notes, and snippets.

@dartiss
Created November 15, 2017 18:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dartiss/7e3f0d5414f6e9ccd9f90f98a1095139 to your computer and use it in GitHub Desktop.
Save dartiss/7e3f0d5414f6e9ccd9f90f98a1095139 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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