I have used the add theme support for custom background and it applies changes only on save, but i want to enable the live preview of what i am doing. How to enable the auto-load for the customizer ?

  • that is weird, you mean when you select a color in the color-picker in the customizer, the live preview is not being updated? WP 4.7 ?
    – David Lee
    Mar 18 '17 at 18:58
  • yes...just on save.. to be mentioned i am developing from scratch so i may be missing something i don't know
    – Makiomar
    Mar 18 '17 at 19:00
  • its there any error in the console?, i just did a quick test in a barebone theme and when clicking in a color it changes in the right side.
    – David Lee
    Mar 18 '17 at 19:18
  • actually the console has a bunch of errors coming from load-styles.php when inspect on customizer screen. but i don't know why because it is completely from scratch theme
    – Makiomar
    Mar 18 '17 at 19:24
  • a link to download the theme link
    – Makiomar
    Mar 18 '17 at 19:27

I downloaded your theme, you need to change the name of the folder, there cant be spaces in the name:

Tutorial Blog -> tutorialblog or maybe tutorial-blog

If you are following a tutorial find other, because i dont think this one is using the guide of the WordPress codex.

(from the user)
Add <?php wp_footer(); ?> to the theme usually in footer.php

  • Thanks for you time,but i have made the change but still not solved, Have you testes it and found it works?.. and i am not following any tutorial i refer to codex and try to apply functions one by one. for learning purposes
    – Makiomar
    Mar 18 '17 at 20:06
  • yeah, the background is changing on click, did you select another theme then activated your theme again? after changing the name
    – David Lee
    Mar 18 '17 at 20:10
  • i did unfortunately. i don't know what the problem is
    – Makiomar
    Mar 18 '17 at 20:14
  • Finally i have found where the problem is, and it is that i haven't added the wp_footer function yet to the theme, so i did and with a combination of your answer of renaming the theme folder, now it works fine. please update your answer, i shall accept it
    – Makiomar
    Mar 19 '17 at 6:49
  • oh that is true i added <?php wp_footer(); ?> to the footer.php
    – David Lee
    Mar 19 '17 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.