Taghow to

“How to” blog posts about graphic design, web development, and software and tools that help designers and developers be productive.

HTACCESS 301 redirect for a URL with spaces (%20) in the slug

H

While exploring my Google Analytics, I saw a URL that users were landing on that doesn't exist. The URL is a typo, and the page shows a 404 error. Interestingly though, the offending URL includes spaces in the slug. Space is shown as %20 in a URL address. To ensure users get to where they intend to be, I set up a 301 Redirect for the incorrect URL. Here's how to create .htaccess redirects for...

Enable SVG in WordPress Media Library using a function

E

The WordPress Media Library does not permit uploading SVG file types by default. Trying to upload an SVG file to the WordPress Media Library displays a warning reading, "Sorry, this file type is not permitted for security reasons." To change the functionality of your site and to permit SVG upload, you'll need to update your theme or child theme's function.php with this code.

How do I turn on Mac’s dark mode?

H

Enabling the dark mode appearance on your Apple computer is a setting found in system preferences. For operating systems macOS 10.14 (Mojave and later) the setting is system-wide. The Mac system-wide dark mode setting controls the look of your Chrome browser, too. The dark theme look for Macs is easy to turn on; it only takes three steps.

Recent Posts

Archives

Categories