Tagged #work

Wordpress 7 Gallery Lightbox Breaks Bootscore-Based Themes

The new gallery lightbox navigation added in WordPress 7 is super cool! However, when a lightbox is opened in WordPress 7, it adds the inert attribute to all direct children of the <body> element. At UF, we used a Bootscore-based WordPress theme (a boilerplate Bootstrap CSS enabled theme), which wraps the site content in a <div id="page" class="site"> (see header.php), causing the entire site to go “inert” when the gallery lightbox is opened–not ideal.

Read more...

#wordpress#code#javascript#dom#work

Gravity Forms Image Aspect Ratio Validation

Despite giving very specific instructions, sometimes users don’t follow them. By default, Gravity Forms does not offer image aspect ratio validation on a file input field, so I had my n8n WordPress code chat agent generate this. I have not tried using the code, and this was for a specific form, so it would need to be modified and tested before use.

Read more...

#wordpress#code#php#work

winget: A Native CLI Package Manager for Windows

Being a Linux-lord, I’m probably late to the party, but WinGet is the commandline utility for Windows (introduced in Windows 10) to install and manage packages, similar to a Linux or Unix environment. This makes Windows vastly more useable for developers. Here are some of the main commands that might be useful when working with winget. I used this tool today to upgrade my version of Windows PowerToys.

Read more...

#microsoft#windows#cli#work

Extract Last Names (Full Name with Suffix)

Some last names in our directory of faculty end with suffixes. This adds a level of complexity to extracting and sorting by last name without a custom field. A custom JavaScript function could be constructed to handle this, provided you know all the possible suffix variations.

Read more...

#regex#javascript#code#php#work

The Deceitful Difficulty of Simplicity

As a creative problem solver by trade, the golden goose I find myself chasing time and time again is a simple elegant solution that seems so obvious, it’s surprising that nobody thought of it first. I’m a creative person: I know this because people have told me so my whole life. So why is this simple, elegant solution I seek so impossibly unattainable? The answer is perspective and time.

Read more...

#focus#mastery#problem solving#simplicity#work