Skip to content

Consider visiting the AOG Wiki for more dev tips.

Beaver Builder Safe Mode

Ever published a page and realized that you can’t open the builder or edit any of the elements, or messed up the CSS/HTML/JavaScript code? You can append &safemode to the end of the URL to enable safe mode as in website.adondevelopment/contact-us/?fl_builder&safemode. Read more on the Beaver Builder KB here.

Read More

Reuse CSS Values by Using Custom Properties

Custom properties, also known as CSS variables, are defined entities that contain values that can be reused throughout a document. Properties are prefixed with — as in –property-name and contain values that can be accessed by using the var() function. These can be used for repeating values such as colors that may be challenging to…

Read More

Visual Studio Code Remote Development

Prerequisites OpenSSH must be installed on Windows. To test this, open a PowerShell window and type ssh. If you do not see an error, you have OpenSSH installed. If you see an error, install OpenSSH by following the below: Install OpenSSH – https://jcutrer.com/windows/install-openssh-on-windows10 Add c:\windows\system32\OpenSSH\ to your system’s PATH environment variable. Here is a handy…

Read More

Where to store CSS

Using the Customizer Global typography and color settings should be stored in the default WordPress customizer to maximize reuse. Set all the fonts, headings, accent colors (for links), and button colors here before working on the rest of the website. Avoid changing these settings through the builder modules as much as possible to avoid issues…

Read More

Leverage ACF Options pages for global data

If you find yourself needing to update the same piece of data on multiple places in your development site, it might be time to consider storing that information on an ACF field attached to an options page. This makes this information global, simplifying updates by having only one source of truth and making sure any…

Read More

Dealing with image size consistency

It is usually easier, more efficient, and more predictable to enforce the consistency of images via the physical dimensions of an image rather than to do it via CSS. Steps to do this: Create a custom image size via code or a plugin Regenerate media library Query the correct image size on the HTML or…

Read More

Using the Posts module on an archive page

WordPress archive pages already makes the query for you (if on a “Services” archive page, “Service” posts are already sent to the page and just needs displaying). For best performance, select only Main Query from the source when setting up the Posts module on an archive page. Doing otherwise (using Custom Query on an archive…

Read More

PNG vs JPEG

As a rule of thumb, use PNG for images that are made up of a few solid colors (illustrations, icons, things with fonts that need to be sharp, background patterns), and JPG for full blown images with thousands to millions of colors (photographs, patterns with gradients, etc). Of course, if you need parts of the…

Read More
Scroll To Top