Wesley Sinks

Hi, I’m Wesley Sinks. I’m a marketer, creative problem solver, and musician. This is my personal site where I write about technology, creativity, and whatever else I’m learning.

I’m a life-long advocate for free and open source software, the creator behind LinuxCreative, and I currently serve as the Digital Content Specialist (webmaster) at University of Florida Levin College of Law. See my work history.

I believe in simplicity, authenticity, and doing work that matters. When I’m not writing, working, or spending time with my family, I’m probably making music, tinkering with code, or reading.

Explore by Tag

Recent Posts

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

Modern Methods of Showing or Hiding HTML Elements with JavaScript

Take the following basic example:

...

How come when we are toggling the div’s display, we don’t have to explicitly set display to “block” or some other CSS value? Well, setting it to "" or null will actually remove the inline style from the div entirely, which allows it to fall back to its default style, or one set in a stylesheet. It can be advantageous not to explicitly set an inline style value, but to simply remove it. This applies to all properties of HTMLElement.style

Read more...

#html#javascript#code#css