Home › Forums › Pro Support › custom link or none? › Reply To: custom link or none?
March 14, 2017 at 6:06 am
#1760
Participant
<script>
jQuery(document).ready(function(){
var pTags = jQuery( ".home section#wpsp-65 article div.wp-show-posts-inner div.wp-show-posts-image a img, .home section#wpsp-11 article div.wp-show-posts-inner div.wp-show-posts-image a img, .home section#wpsp-50 article div.wp-show-posts-inner div.wp-show-posts-image a img, .page section#wpsp-247 article div.wp-show-posts-inner div.wp-show-posts-image a img" );
if ( pTags.parent().is( "a" ) ) {
pTags.unwrap();
}
var tTags = jQuery( ".page-id-255 div#page div#content div#primary main#main div#generate-section-2 div.generate-sections-inside-container section#wpsp-247 article div.wp-show-posts-inner header.wp-show-posts-entry-header h2 a" );
if ( tTags.is( "a" ) ) {
tTags.contents().unwrap();
}
});
</script>
Now it removes both header text link and image link