Creating a Customizer control with JavaScript

This post is about creating a control, from A to Z, in WordPress Customizer with JavaScript. Did you know that you can create panels, sections and controls in the Customizer with JavaScript ? "The PHP API for their registration is essentially a wrapper for the underlying JS API" as mentioned by Weston Ruter in…

Read More

Clear your local development cache with JS

This post is about clearing your local development cache with JavaScript without a server side language. When we use a server side language to get our changes this is what happens : 1- the Request is made by the browser to the server 2- the Response is sent from the server to the browser…

Read More

Change page title dynamically

This post is about changing the document title when the user leaves your site's tab. A good way to grab the the user's attention is of course to write useful content 😁 Being funny is also a very good strategy to keep users coming back to your blog. A little bit of originality won't…

Read More

Listen for changes in Customizer Preview !

This post is about how to listen for any changes in WordPress Customizer Preview. One of the most beautiful functionalities of WordPress is the Customizer, because it allows developers to give a simple way for users to modify themes/plugins appearance and behavior. However, this beauty has it's own code of conduct. Let's scratch it…

Read More