Move into wp-content path
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
17
wp-content/themes/Pirate-Rogue/js/customizer.js
Normal file
17
wp-content/themes/Pirate-Rogue/js/customizer.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Settings for Customizer Preview. Only used in Backend.
|
||||
*/
|
||||
|
||||
|
||||
( function( $ ) {
|
||||
wp.customize( 'pirate_rogue_footer_background_color', function( value ) {
|
||||
$("body[class^='footer-bgcol-']").removeClass( function() {
|
||||
return (this.className.match(/\b(footer-col-[a-z]+)\b/g) || []).join(' ');
|
||||
})
|
||||
|
||||
value.bind( function( newval ) {
|
||||
$( 'body' ).addClass( "footer-bgcol-"+newval );
|
||||
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
||||
Reference in New Issue
Block a user