/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Featured article fix// var myFeatured = $('body.front div.featured').attr('id'); var theHidden; $('body.front .front-latest-news div.article').each(function(){ theHidden = $(this).attr('id'); if(theHidden == myFeatured){ $('body.front div.front-latest-news div#'+theHidden).hide(); } });