Close
Stay up to date with all things Laravel, Tailwind, WordPress & PHP

Subscribe now to my e-mail newsletter and get my latest articles and project updates delivered directly to your inbox. Never miss an update.

How to define the $query parameter for Elementor

Published February 23, 2021; last updated on September 10, 2021
How to define the $query parameter for Elementor

The Elementor page builder is a great page builder for building WordPress websites. It offers a plethora of extra functions to be used by developers. Often, you’ll come across the $query parameter. This parameter is intended to define media queries and can be helpful with functions like add_rules. In this post, I’m going to show you how it works and how you can use it.

This article is a sequel to my earlier article about using the Elementor add_rules function.

How to check whether the Elementor editor is active

Published February 12, 2021
How to check whether the Elementor editor is active

Elementor is a great page builder, but integrating it in your theme can sometimes come with a few hurdles. One of those is checking whether the editor is active – or if the page is being edited. Depending on that, you might want to load or not load certain stylesheets or scripts. Or perhaps you’ve an other use case. Anyway, checking this is really easy.

To check this, Elementor has a handy function built in,

How to use the Elementor Stylesheet::add_rules

Published December 22, 2020; last updated on September 10, 2021
How to use the Elementor Stylesheet::add_rules

When developing WordPress themes that use the Elementor page builder, you’ll sometimes want to add additional CSS to the stylesheet of a page. Elementor provides an extremely large amount of functions and hooks, but examples are scarce. In this article, I’ll give an example of adding CSS to an Elementor stylesheet.

How do CSS stylesheets work in Elementor

For this tutorial, I created a very simple page in Elementor. This page only contains a title.

How to integrate Elementor in a WordPress theme

Published October 12, 2020; last updated on September 10, 2021
How to integrate Elementor in a WordPress theme

The Elementor page builder is the world’s best WordPress page builder and is used by millions of people. Integrating Elementor in your WordPress theme is easy and free, and doing so brings your theme millions of potential customers.

This tutorials explains how to integrate Elementor with your WordPress theme in a few simple steps. I’m going to go over some basic concepts and techniques that are important when using Elementor in your theme.