Blog
While it is easy to drop in some code to hide content from search results, it can have some unintended consequences because WordPress uses the same search query loop for both frontend and backend searches. Hide content universally To hide content on both the front and backend, we can use the following code: function prefix_exclude_from_search( […]
Read MoreWhile it is incredibly useful to use a blueprint site as a starting point for all new website development projects, it also makes it easy to forget what our default site settings are. This article is part checklist, part reminder what default settings I use for reference when create a new blueprint site. Body width […]
Read MoreBricks Builder has a flexible slider module called “Slides (Nestable)” which allows each slide to be built from scratch within the builder. In some cases, it may be necessary to create external tab-like navigation. In order for the following code to work properly, we need 3 things: The second half of the slider ID. By […]
Read MoreWhen using a Linux guest OS on Parallels, I was occasionally getting the following error, along with a password input: The password you use to log into your account no longer matches your login keyring However, when entering the login password into the prompt, it fails. After going down this rabbit hole for a day […]
Read MoreLet’s start by looking at the timeline of a form submission, and then we can look at what can be done to combat spam at each section of the timeline. A user (or a bot) visits a page on our site. The user (or bot) fills out and submits the form. Our system processes the […]
Read MoreWhen pasting text into the WordPress classic editor, the default behavior is to keep the formatting of the pasted content. The keeps things like links working, but it also keeps font colors, sizes, and other formatting that may be undesirable. To change the default behavior so that by default all formatting is removed, we can […]
Read MoreBeaver Builder has a top level menu item in the WordPress admin menu. However, it doesn’t allow new menu items to be added using the standard WordPress methods. After reading a bunch of the Beaver Builder code base, I was able to find the filter that handles the submenu items in the /extensions/fl-builder-user-templates/classes/class-fl-builder-user-templates-admin-menu.php file. The […]
Read MoreFor some reason, Beaver Builder’s video lightbox opens quite small, even on large screens. I wanted the lightbox to take up most of the screen, so I used the following CSS to make that happen: .mfp-iframe-holder .mfp-content { max-width: 95%; aspect-ratio: 16/9; height: auto; } @media (min-aspect-ratio: 16/9) { .mfp-iframe-holder .mfp-content { height: 95%; aspect-ratio: […]
Read More