Created
January 6, 2016 14:15
-
-
Save deepak-rajpal/c1403397d391f5794da2 to your computer and use it in GitHub Desktop.
adding specific classes to all widgets except text widget
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
<script> | |
// Adding Required classes into all sidebar boxes except text widget | |
jQuery(document).ready(function(){ | |
// $('body').fontResize(); | |
$('#primary .widget-container:not(.widget_text)').addClass('varnav'); | |
$('#primary .widget-container:not(.widget_text) ul').addClass('ml30 mb5'); | |
$('#primary .widget-container:not(.widget_text) ul li a').addClass('bullettext'); | |
$('#primary .widget-container:not(.widget_text)').append('<div class="varnavFooter"></div>'); | |
$('#secondary .widget-container:not(.widget_text)').addClass('rightbox2'); | |
$('#secondary .widget-container:not(.widget_text) ul').addClass('ml30 mb5'); | |
$('#secondary .widget-container:not(.widget_text) ul li a').addClass('bullettext'); | |
$('#secondary .widget-container:not(.widget_text)').append('<div class="varnavFooter"></div>'); | |
/* Fixed box header bg for Recent widgeted plugin widget */ | |
$('#primary .zg_lwp_widget h3').css( "background", "url('<?php echo get_template_directory_uri(); ?>/images/lmenuSub_bgHeader.gif') no-repeat scroll 0 0 transparent" ); | |
$('#primary .zg_lwp_widget h3').css( "height", "100%" ); | |
/* */ | |
$("#footer ul li:last .separator").remove(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment