Tag widgets
WordPress Conditional Tags Cheat Sheet With Examples
Conditional tags are functions that return true or false depending on the page being viewed. Use them to show or hide content, or to load scripts only where they are…
How To Add Content Before Or After Posts With The The_Content Filter
The the_content filter runs every time WordPress prints the content of a post. Hook into it to add a call to action, an author box, an ad or any extra…
How To Register A Widget Area (Sidebar) In WordPress
A widget area, also called a sidebar, is a place in your theme where the site owner can drag and drop widgets from Appearance, Widgets. Register it with register_sidebar() and…
How To Use Css Container Queries For Component-Based Responsive Design
Media queries react to the screen size. Container queries react to the size of a parent container, so a component adapts to the space it actually has. This is ideal…
How To Register A Gutenberg Block With Plain Javascript In WordPress
You can register a simple block without a build step. Load the script in the editor with the enqueue_block_editor_assets hook and declare the WordPress packages as dependencies.


