Created
November 15, 2017 18:27
-
-
Save dartiss/7e3f0d5414f6e9ccd9f90f98a1095139 to your computer and use it in GitHub Desktop.
WordPress Plugin to Suppress Skimlinks Output
This file contains hidden or 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/