Add support for theme customizer
This commit is contained in:
@@ -12,6 +12,11 @@
|
||||
],
|
||||
"main": true
|
||||
},
|
||||
"customizer.js": {
|
||||
"files": [
|
||||
"scripts/customizer.js"
|
||||
]
|
||||
},
|
||||
"jquery.js": {
|
||||
"bower": ["jquery"]
|
||||
}
|
||||
|
||||
8
assets/scripts/customizer.js
Normal file
8
assets/scripts/customizer.js
Normal file
@@ -0,0 +1,8 @@
|
||||
(function($) {
|
||||
// Site title
|
||||
wp.customize('blogname', function(value) {
|
||||
value.bind(function(to) {
|
||||
$('.brand').text(to);
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user