alexmansfield

How to hide WordPress content from search results

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( […]

How to hide WordPress content from search results Read More »

Parallels Desktop (Solved): The password you use to log into your account no longer matches your login keyring

When 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

Parallels Desktop (Solved): The password you use to log into your account no longer matches your login keyring Read More »

Adding a menu item to the Beaver Builder admin menu

Beaver 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

Adding a menu item to the Beaver Builder admin menu Read More »

Improving Beaver Builder’s Video Lightbox

For 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:

Improving Beaver Builder’s Video Lightbox Read More »