How To Remove WooCommerce Product Image Link

WooCommerce automatically wraps your main product image in an <a> tag. It either links to the lightbox, or if you’ve disabled product image zoom it leaves a link to the image. If you want to get rid of that link, there’s no easy setting (as of WooCommerce 5.4.1) to disable it. To remove the link

How To Disable WooCommerce Product Image Zoom

I didn’t want the default product image zoom feature that comes with WooCommerce. There are two ways to disable the WooCommerce product image zoom function: or From trying to implement it, the remove_theme_support way often doesn’t work by putting it straight into your functions.php file. This is because it’s often called later in one of

How To Allow Admins To Upload SVG To WordPress

Scalable Vector Graphics (“SVG”) can be a great way to display line art on your site at a range of sizes without having to worry about file sizes. They’re particularly useful for a logo or for social media icons. However, due to the way they’re coded, uploading an infected SVG can be a potential security

How To Add An Item To WordPress Theme Customizer

If you’ve not worked with it before, the WordPress Theme Customizer can be frustrating. The documentation assumes you already understand how it works. I’ll save a long discussion on how everything works for another day and dive right into adding a super basic item. The basic default Theme Customizer looks like this: We’re going to

How To Change Footer Widget Title Heading Levels In Divi

For accessibility reasons, I needed to change the heading levels in the WordPress Divi footer widget titles on one of the sites I’m building. They are set to <h4> by default, but I needed them to be <h2>. The code to change the heading levels is: How This Works Divi’s setup for widget titles is

How To Add A Custom Class To Astra Search Form

A friend had a question on how to add a custom class to the header search box in Astra that was too complex to answer in a Facebook post, so I’ll put it here. Essentially, he wanted to add a class to the input field which already has the class “search-field”. The class he wanted

How To Find Which WordPress Database Belongs To Your Website

When you have multiple websites installed on your hosting account, it can be tricky to track which database belongs to which WordPress installation. Given that most of the unique information belonging to a website lives in the database, you don’t want to accidentally edit the wrong one. To find which WordPress database belongs to your

How To Create A New WordPress Admin User In phpMyAdmin

Sometimes a client will give you cPanel access to a WordPress website, but not the login details for an admin. Other times, you might find yourself locked out of WordPress, or the site got hacked and the password changed. Whatever the reason, you might need to manually create a new admin user through the database.

How To Disable WordPress Admin Email Verification

WordPress 5.3 introduced a screen that appears every six months to check if the administration email for the website is up to date. You’ve probably seen it. It looks like this: Thankfully it will only show to people with the “manage_options” capability, which generally means only website admins. For most of us, it’s annoying, but