Register and Show Sidebars in WordPress

This is a detailed post on how you can register and show Sidebars in WordPress. It also contains other useful things you need to know about WordPress sidebars. Sidebar is a theme feature which was introduced in WordPress version 2.2. It’s basically a widget-ready area which can contain widgets. Widgets are used to show additional information […]

Continue reading

Conditional Statements in PHP

PHP allows us to perform actions based on different conditions. This means we can create conditions that evaluates to either true or false and based on that result we can perform certain actions. These are called Conditional Statements. Conditional Statements are also known as – conditional expressions or conditional constructs. Conditional Statements in PHP There are few conditional […]

Continue reading

Ternary Operator in PHP – Explained

If you don’t know what’s a ternary operator in PHP is, then you’re missing a cool feature of PHP. There are few operators in PHP which seems a bit complicated. Ternary Operator is one of them. The reason it’s called ternary operator is exactly what you are thinking, it’s composed of three operands. (Operands are […]

Continue reading

How to Load jQuery in WordPress Footer

By default, WordPress includes jQuery library with every installation. WordPress registers the jQuery library to load in header. But site performance wise, this is not always good. So, here we’ll see how we can load the jQuery in footer of our WordPress site. We can do this using a little snippet in our functions.php file. Let’s do […]

Continue reading