New answers tagged theme-customizer
0
votes
Accepted
Why does customize_register only load inside of functions.php for me?
In the second version you're running your code as a wp_enqueue_scripts hook. This is for frontend scripts and isn't called in the admin site. For that you need to hook admin_enqueue_scripts as well:
...
Top 50 recent answers are included
Related Tags
theme-customizer × 917theme-development × 207
customization × 94
themes × 92
php × 84
javascript × 71
theme-options × 50
functions × 49
widgets × 36
child-theme × 35
css × 33
get-theme-mod × 32
api × 31
jquery × 30
plugins × 29
plugin-development × 23
images × 23
menus × 22
ajax × 16
settings-api × 16
options × 15
sanitization × 14
color-picker × 11
woocommerce-offtopic × 10
wp-admin × 10