How To Change Astra Theme Default Text

As part of making your site feel more like your own, you might want to change some of the default text that the WordPress Astra theme adds. Common things I’m often asked to change are: Leave a Comment Your comment is awaiting moderation Sorry, but nothing matched your search terms. Please try again with some

How To Get WordPress User Display Name

There are times when you want to personalise a user’s experience, perhaps in a membership site or in a marketplace style site. In those cases, it’s handy to be able to display a users name. You probably don’t want to display the actual usernames, especially when WordPress provides a way for people to customize how

How To Add A Blank WordPress Shortcode

Sometimes when you’re building a site you know you’re going to add particular functionality later, but you don’t want to delay launching the site while you build that functionality. You know exactly where it needs to go, and you’re going to use a shortcode to hook it in, but you don’t want to leave the

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