<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2000/atom"><channel><title>Code on wesleysinks.com</title><link>https://wesleysinks.com/tags/code/</link><description>Recent content on Code by wesleysinks.com</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><lastBuildDate>Fri, 05 Jun 2026 13:39:47 +0000</lastBuildDate><atom:link href="https://wesleysinks.com/tags/code/index.xml" rel="self" type="application/rss+xml"/><item><title>Wordpress 7 Gallery Lightbox Breaks Bootscore-Based Themes</title><link>https://wesleysinks.com/til/wordpress-7-gallery-breaks-bootscore-based-themes/</link><pubDate>Fri, 05 Jun 2026 13:39:47 +0000</pubDate><guid>https://wesleysinks.com/til/wordpress-7-gallery-breaks-bootscore-based-themes/</guid><category>TIL</category><description>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 &amp;lt;body&amp;gt; element. At UF, we used a Bootscore-based WordPress theme (a boilerplate Bootstrap CSS enabled theme), which wraps the site content in a &amp;lt;div id=&amp;quot;page&amp;quot; class=&amp;quot;site&amp;quot;&amp;gt; (see header.php), causing the entire site to go &amp;ldquo;inert&amp;rdquo; when the gallery lightbox is opened&amp;ndash;not ideal.</description></item><item><title>Gravity Forms Image Aspect Ratio Validation</title><link>https://wesleysinks.com/til/gravity-forms-aspect-ratio-validation/</link><pubDate>Thu, 12 Mar 2026 13:16:42 +0000</pubDate><guid>https://wesleysinks.com/til/gravity-forms-aspect-ratio-validation/</guid><category>TIL</category><description>Despite giving very specific instructions, sometimes users don&amp;rsquo;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.</description></item><item><title>Extract Last Names (Full Name with Suffix)</title><link>https://wesleysinks.com/til/extract-last-names/</link><pubDate>Sat, 04 Oct 2025 20:58:06 +0000</pubDate><guid>https://wesleysinks.com/til/extract-last-names/</guid><category>TIL</category><description>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.</description></item><item><title>Modern Methods of Showing or Hiding HTML Elements with JavaScript</title><link>https://wesleysinks.com/til/modern-methods-of-showing-or-hiding-elements/</link><pubDate>Thu, 07 Aug 2025 20:52:23 +0000</pubDate><guid>https://wesleysinks.com/til/modern-methods-of-showing-or-hiding-elements/</guid><category>TIL</category><description>Different options available to show and hide HTML elements using JavaScript in 2025, including my preference.</description></item><item><title>Customizing a code-server Docker Image</title><link>https://wesleysinks.com/til/customizing-a-code-server-docker-image/</link><pubDate>Wed, 06 Aug 2025 20:30:55 +0000</pubDate><guid>https://wesleysinks.com/til/customizing-a-code-server-docker-image/</guid><category>TIL</category><description>The Problem: code-server docker container comes with 0 binaries, so you have to set it up to your specific needs in a Dockerfile to include the binaries and packages you need for development assuming you&amp;rsquo;re using the built-in terminal and proxied port forwarding, etc. The Solution: Write a Dockerfile.</description></item></channel></rss>