Do you want to redirect your 404 page to your home page in WordPress?
Redirecting the 404 ‘Not Found’ page to your website’s home page can help reduce your bounce rate and allow your users to discover other useful content on your website.
In this article, we will show you how to redirect your 404 page to your home page in WordPress.
Why Redirect Your 404 Page to Your WordPress Home Page?
When a user tries to visit a page that doesn’t exist on your WordPress website, WordPress will show them a 404 error page instead.
The wording and appearance of this page can vary depending on the theme you are using.
Most users who land on the default 404 page will leave your site quickly. This can increase your overall bounce rate and negatively impact your search engine rankings.
That’s why you should take the time to create a custom 404 page. However, until you do that, you can take the shortcut in this tutorial and redirect users to the homepage.
That being said, let’s look at how to redirect all 404 errors to your home page. We will cover two methods and also show you how to create custom redirects for individual pages:
Method 1: Redirect All 404 Errors to the Home Page in WordPress
For this method, we will be using All in One SEO for WordPress (AIOSEO). It is the best WordPress SEO plugin that allows you to set up redirects, optimize your content for search engines, and more.
The first thing you need to do is install and activate All in One SEO (AIOSEO). For more details, see our step-by-step guide on how to install a WordPress plugin.
Note: There is a free version of All in One SEO, but we will be using the Pro version since Redirect is a Pro addon.
Once the plugin is activated, you need to go to All in One SEO » Redirects.
If you haven’t set up redirects yet, then you must click the ‘Activate Redirects’ button.
This will install All in One SEO’s Redirects module.
Next, you will need to click on the ‘Settings’ tab at the top of the page. This page allows you to configure redirects in AIOSEO.
You need to scroll down the page until you find the ‘Advanced 404 Settings’ section. Enable this section by simply clicking the toggle button so that it turns blue.
Now you will be able to see some more settings. You should toggle the ‘Enable default 404 redirect’ button to the on position. After that, make sure that the ‘Home Page’ option is selected.
Notice that there’s also a ‘Custom URL’ option. This allows you to redirect 404 errors to any post or page. Don’t forget to click the ‘Save Changes’ button at the top or bottom of the page to store your settings.
Now when your visitors try to visit a URL on your website that doesn’t exist, they will be taken to the home page instead of seeing the default 404 page.
Method 2: Redirect All 404 Errors to the Home Page Using Code
If you prefer not to use a plugin, then you can use a simple code snippet to redirect all 404 pages to the homepage.
First, you will need to create a new file in your WordPress theme folder and name it 404.php. If your theme already has a 404.php file, then you must edit that file instead.
To edit this file, you need to connect to your WordPress hosting account with an FTP client or their file manager tool.
Once you are connected to your website, you will be able to see the 404.php file in your WordPress themes folder.
You need to add the following code as the first line in your 404.php file:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
Next, save the 404.php file and reupload it to your theme directory using FTP or your hosting control panel.
Now, when a page is not found, instead of seeing a 404 page, visitors will be redirected to your WordPress home page.
Bonus: Set Up Custom 404 Page Redirects With AIOSEO
The best and most SEO-friendly way of handling 404 errors is to redirect visitors to the most relevant page, not just your homepage.
The All in One SEO plugin’s Redirects feature can also track all 404-page errors and let you set up smart 404-page redirects in WordPress.
If you installed and activated AIOSEO when you followed Method 1, then all you need to do is navigate back to the All in One SEO » Redirects page and click on the ‘Settings’ tab.
Next, scroll down until you see the ‘Logs’ section. Your 404 logs are a record of URLs that your visitors have tried to use to visit pages that no longer exist on your site.
Make sure the ‘404 Logs’ is toggled on so that it looks blue. You can also choose how long you want the plugin to record your logs by selecting the time period from the dropdown menu.
Don’t forget to click ‘Save Changes’ before moving on.
After that, you can click the ‘404 Logs’ menu option to see the last accessed 404 page.
Remember, since you just enabled logging, it may not display anything right away. You might need to wait up to 24 hours before you see any useful insights there.
The ‘URL’ column will show you the pages users tried to visit but don’t exist.
You can redirect any of these URLs to an existing page by clicking the ‘Add Redirect’ link in the ‘Redirect’ column. This will open a dropdown where you can enter your redirect information.
For best results, you need to enter the most relevant page for the original query in the ‘Target URL’ box and then click ‘Add Redirect’.
For example, if you deleted a tutorial on how to start a WordPress blog and then wrote a new one, then it’s best to redirect that old URL to the new blog post rather than your homepage.
To add multiple 404-page redirects, simply follow the same steps as above.
Remember, generally, you don’t want to redirect your 404 page to your home page forever. It’s a great temporary solution until you create a custom 404 page design that will convert better or set up individual redirects that take users to a relevant page that does exist.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Are you looking for the best way to host and manage a virtual event?
Maybe you’d like to hold your next conference online or run a webinar about your products and services. You may be worried that it will be too expensive, or you won’t have the technical knowledge to pull it off.
In this article, we’ll list all of the equipment on online services you’ll need, and teach you everything you need to host a virtual event in WordPress. Plus, if your business doesn’t have a website, then we will cover that too.
Why Host Virtual Events?
Are you looking to host a conference to build your authority in your niche, or invite users to a webinar where you can demonstrate your products and services? You can use your WordPress website as a launchpad for virtual events.
A virtual event is an online gathering where people connect using computers and mobile devices instead of meeting in the same physical location. These events can range from small gatherings to full-scale conferences with thousands of attendees.
They are a good way to generate leads, boost user engagement, and even make money through sponsorship opportunities, selling premium tickets, and offering paid membership.
There are many benefits to running these events online. You won’t need to worry about paying for a venue, and your users won’t have to worry about transport. You also won’t be so affected by time zone differences.
These benefits mean that you’ll likely have a larger attendance at the event. However, virtual events are also more prone to technical problems and difficulties. Organizing an event will always require effort, planning, and the right resources, even when you hold it online.
Are you ready to learn how to host a virtual event using your WordPress website? We’ll walk you through each step.
Here’s a quick outline that you can use to easily browse the article:
If you already have a WordPress website set up, then you can click skip this section. If you like, you can simply use your business website. For big events, you might like to create a landing page on a separate website.
Once your website is set up, the next step is to choose and install an event plugin.
Choosing and Installing a WordPress Event Plugin
You can add the features you need to host an event to your WordPress site by installing a WordPress event plugin. The plugin you choose will depend on your needs, such as whether your users need to purchase a ticket or simply register or RSVP to attend the event.
You should start by deciding whether you want to display an RSVP form, event calendar, or event registration page on your website.
Create an RSVP Form in WordPress
If you simply want your users to RSVP to your event, you can use the free plugin WPForms Lite to create a simple RSVP form on your website.
This will let you keep track of who will be attending and give you an idea of the number of participants you will have.
An event calendar is an easy way to let your users know about the events you are running. Depending on the plugin you choose, you will be able to display your events, let users RSVP to events, sell tickets, add and manage venues, and much more.
For example, The Events Calendar is a feature-rich event management system that makes it easy to add all your event details, including a separate page for venues and organizers.
You have multiple different views for displaying your event calendar on the front end, including day, week, or month. You can even spotlight events to increase engagement on the events you want the most attention on.
Plus, you can add filtering, so your users can find the exact events they’re looking for, and they offer several addons for selling tickets.
Create an Event Registration Page in WordPress
If you decide to sell tickets to your event, you will quickly discover that many third-party event registration and ticketing services will charge a small fee for each ticket you sell.
You can avoid some of these issues by creating your own event registration page in WordPress. This will allow you to collect online payments directly, store attendee information on your website, and use your own brand name when promoting the event.
You can easily create an event registration page using WPForms.
The free Lite version supports Stripe credit card payments, and you can unlock additional payment methods such as PayPal, Square, and Authorize.net by upgrading to the Pro plan.
Now that you have a way that users can let you know they will attend your event, you should create a landing page. This is a carefully designed page that lets your visitors know about your event and encourages them to sign up.
It should contain a clear call to action that is linked to the RSVP form, event calendar, or event registration page that you created.
In our guide on how to create a landing page with WordPress, we show you how to use the top three solutions for creating landing pages in WordPress. These landing page builders are easy to use, optimized for speed, and affordable for small businesses. You can pick the solution that best fits your needs.
Once you have a landing page for your event, you can start to promote it. You can start by linking to your event landing page in your email newsletter and social media.
Getting the Right Audio and Video Equipment
Unless you’re getting started on a really tight budget, you and the speakers at the event shouldn’t use the built-in webcam and microphone on your computer. Your users will instantly notice the low audio and video quality and may decide not to attend future events.
Your most important choice of equipment will be your microphone. We recommend you choose a USB mic so you can plug it straight into your computer without the need for extra gear. Here are three popular microphone choices:
The Samson C01U is a good entry-level USB microphone.
The Rode NT-USB is a high-quality USB microphone that comes with a desktop mount and pop filter.
The Heil PR-40 is what the pros use. It has the standard XLR connection instead of USB, so you’ll need to buy a 3.5mm to XLR Cable, audio interface, or mixer as well.
Your microphone will sound best if you purchase a few more items, such as a microphone arm, shock mount, and pop filter. For example, if you are using the Rode NT-USB microphone, you will need the Rode SM6 shock mount with a built-in pop filter and Rode PSA1 boom arm.
The Rode Podcaster kit is good value and comes with a mic arm and shock mount, and we use this at WPBeginner.
If you don’t want to buy all of your equipment at once, then you could use your built-in webcam while you get started, but you will likely get better video quality out of your smartphone’s camera.
You will need to mount your phone on a tripod, and the GripTight GorillaPod Stand PRO is a good option for any type of phone. It has adjustable legs that can be attached to any surface.
Eventually, you can upgrade to a 4K webcam like the Logitech BRIO Webcam. This camera is perfect for video conferencing and easily clips onto any computer. It has excellent video quality even in low light.
You’ll also need decent headphones so that the audio from your speakers isn’t picked up by your microphone. Headphones that plug in are more reliable than Bluetooth headphones. A good option is the Sony MDR7506.
Choosing and Integrating a Video Conferencing Service
You will need to choose an online service that allows you to run virtual events. You can check our list of the best webinar software platforms and compare their features so you can choose the best webinar platform to fit your needs and budget.
We believe that GoToWebinar, LiveStorm, and EasyWebinar are good options because they offer all the powerful webinar features that you need with high-quality video streaming and affordable pricing plans.
If you’re just starting out, then we recommend Zoom because it is easy to use, well-known, and mobile-friendly. Zoom lets you schedule meetings in advance and provides a unique link for each event that you can share with the participants and include on your website.
It is also easy to integrate Zoom with WordPress but to do that you need at least the Pro version of Zoom and the Zoom webinar addon. There is a free version, but you’ll need to have a paid account in order to set up the integration.
You will need to set up Zoom correctly and then connect your account with your WordPress website. Once you’ve done that, you can set up a workflow using Uncanny Automator to automatically register your users with Zoom once they sign up or purchase a ticket.
Before you know it, the time will arrive to run your event. If you’ve chosen the right webinar software platform, you will have all of the features you need, along with reliable, high-quality video and audio.
You will be able to feature multiple presenters and hosts and share your screen with the participants for demonstrations.
We recommend that you mute everyone by default. However, using your platform’s built-in chat feature, participants will be able to interact with you and one another during the event.
They will also be able to ask and answer questions, and you can have them fill in polls to provide you with feedback. We recommend UserFeedback by MonsterInsights for this sort of interaction.
Event Follow Up
After the event is finished, you should follow up with your participants as soon as possible, while they are most interested and the event is still fresh in their minds.
Because you have their contact details from when they registered, you can send them a follow-up email. In that email, you can ask for their feedback. You might like to follow our guide on how to create a survey form in WordPress.
You can follow up with further emails to let them know about the events you have coming up and to gauge their interest in different topics by creating an interactive poll.
Most webinar services will allow you to record the event, and some can even create transcripts. This will allow users who couldn’t attend the live event to see the content.
Finally, most webinar services include actionable analytics so you can see what’s working and what’s not. They will show you who attended, gauge the audience’s interest, list the questions that were asked, and more. This will allow you to fine-tune your event in the future for maximum conversions.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Do you want to add smart app banners in WordPress?
Smart banners are an easy way to promote your mobile app and get visitors to download it. If an iOS user already has your app, then the banner will encourage them to open the app for a better user experience.
In this article, we will show you how to add smart app banners to WordPress.
Why Add Smart App Banners in WordPress?
Many website owners create a companion mobile app where visitors can browse their content in a way that’s optimized for mobile.
Since these apps are designed for mobile devices, they often provide a better user experience. You can also show reminders, personalized content, offers, updates, and more using mobile push notifications. All of this means more engagement, conversions, and sales.
You can encourage iPhone and iPad users to download your mobile app using a smart app banner. This is a banner that appears at the top of the screen when an iOS user visits your site using the Safari browser.
Visitors can click the banner to download your app from the App Store. If the visitor already has your app, then the banner will ask them to open the app instead. In this way, you can get more downloads and engagement.
If the visitor is using a non-Apple device or a different web browser, then WordPress will hide the banner from them automatically.
For example, the following image shows the same website in the Chrome mobile browser.
With that being said, let’s see how you can add smart app banners in WordPress. Simply use the quick links below to jump straight to the method you want to use:
Method 1: Using WPCode (Show a Smart App Banner Across WordPress)
The easiest way to add smart app banners to your WordPress website is by using WPCode. This free plugin allows you to show the same banner on every page and post using one line of code.
With that in mind, WPCode is the perfect choice if you want to promote a single iOS application. However, if you want to show different banners on different pages, then we recommend using method 2 instead.
When adding custom code to WordPress, some guides will ask you to edit your site’s functions.php file. We don’t recommend this, as even a small typo or mistake could cause common WordPress errors or even make your site inaccessible.
By using WPCode, you can add custom code to WordPress without any risks. You can also enable and disable code snippets with the click of a button.
First, you need to install and activate the free WPCode plugin. For more instructions, please see our beginners’ guide on how to install a WordPress plugin.
Upon activation, head over to Code Snippets » Add Snippet. Next, click the ‘Use Snippet’ button under the ‘Add Your Custom Code (New Snippet)’ option.
This will take you to the ‘Create Custom Snippet’ page, where you can type in a name for the code snippet. This is just for your reference, so you can use anything you want.
After that, open the ‘Code Type’ dropdown and choose ‘HTML Snippet’.
For the next step, you will need to know your application’s ID.
To get this information, open a new browser tab and head to the Apple Services Marketing Tools page. Here, type in the name of the application you want to promote and click on the ‘Search’ icon.
To see all the iOS apps that match your search term, simply scroll to the ‘Apps’ section.
Here, find the app you want to promote and give it a click.
At the bottom of the screen, you will see a ‘Content Link’.
The app ID is the value between id and ?. You will need this information in the next step, so either leave this tab open or make a note of the app ID.
Now you have the app ID, switch back to the WordPress dashboard. You can now add the following snippet into the code editor, replacing the app ID with the information you got in the previous step:
With that done, you must scroll to the ‘Insertion’ box. If it isn’t already selected, click on ‘Auto Insert’ and then select ‘Site Wide Header’ from the dropdown menu.
When you are ready, scroll to the top of the page and toggle the ‘Inactive’ switch to ‘Active’.
Finally, just click the ‘Save Snippet’ button to store your changes.
How to Test the Smart App Banner Code in WordPress
The best way to test the smart app banner is by visiting your website on an iOS device using the Safari mobile app. In fact, the smart app banner won’t even appear if you try to view the mobile version of your WordPress site from desktop.
If you need to quickly check whether the code snippet is working, then one workaround is to use your browser’s Inspect tool. It allows you to see whether the <meta name> code has been inserted into your site’s <head>section, which suggests it’s working as expected.
To do this, go to any page or post on your WordPress blog. Then, right-click anywhere on the page and select ‘Inspect’.
A new panel will open, showing all the site’s code.
Simply find the <head> section and click on its arrow to expand.
Now, look for the <meta name="apple-itunes-app"> code you added in the previous step.
If you see this code, then the smart app banner should be appearing on iOS devices.
Method 2: Using Smart App Banner (Add Banners to Specific Pages and Posts)
Sometimes, you may want to only promote apps on specific pages and posts. For example, you typically won’t show a smart app banner on sales pages and landing pages as the banner might distract from the main call to action.
You may even want to show different banners on different parts of your website. For instance, if you are an affiliate marketer, then you might have a list of apps you want to promote.
In this case, we recommend using the Smart App Banner plugin. This plugin allows you to show different banners on different pages and include affiliate data in those banners. These features make it a great plugin for affiliate marketers.
First, you will need to install and activate the Smart App Banner plugin. If you need help, then please see our guide on how to install a WordPress plugin.
Upon activation, you can add an app banner to specific pages or posts, the WordPress homepage, or across your entire website.
To start, let’s look at the app’s settings. Here, you can add a banner to every page and post or add a smart app banner to your homepage only.
To start, go to Settings » Smart App Banner and type the application’s value into the ‘App ID’ field.
You can get this information by following the same process described in Method 1.
If you are using affiliate marketing to make money online blogging, then you can type your affiliate token into the ‘Affiliate data’ field. The information will vary, so you may need to log in to your affiliate portal or speak to your partners to get the right token.
After that, you can either check the ‘Show on all pages’ box or leave it unchecked. If you leave the box unchecked, then the app banner will only appear on your homepage.
When you are happy with how the banner is set up, simply click on the ‘Save Changes’ button to make it live.
Do you want to add a smart app banner to specific pages and posts instead? This allows you to control exactly where the banner appears on your website.
For example, if you are an affiliate marketer, then you might promote different apps on different pages and then use Google Analytics to see which banners get the most conversions.
To do this, simply open the page or post where you want to add the banner. Now, find the new ‘Smart App Banner’ section in the WordPress content editor.
Here, just add the app ID and optional affiliate information by following the same process described above.
When you are happy with the information you have entered, just click on ‘Update’ or ‘Publish’ to make your changes live.
Then, you can simply repeat these steps to add a smart app banner to more WordPress posts and pages.
FAQs About Adding Smart App Banners in WordPress
In this guide, we showed you how to promote your mobile app on specific posts and pages or across your entire WordPress website.
If you still have questions, then here are our top FAQs about how to add smart banners to your WordPress website.
What is a smart app banner?
Smart app banners appear at the top of the Safari web browser and give users the option to open an app or download it from the Apple App Store.
Since they are created by Apple, smart app banners have a consistent design that many iOS users recognize. They only appear to people who are using iPhones and iPads running iOS 6 or higher.
Why can’t I see my smart app banner on desktop?
The smart app banner won’t appear on desktop computers, even if you view the mobile version of your site.
To see the banner in action, you will need to visit your site on an iPhone or iPad using the Safari mobile app.
Why can’t I see the smart app banner on my iPhone or iPad?
Smart app banners only appear on devices running iOS 6 or higher when you are using the Safari mobile app. If you don’t see the smart app banner, then you should start by checking you have the latest versions of both iOS and the Safari mobile app.
The smart app banner also detects whether the device can support the app and if the app is available in your location. If you don’t see the smart app banner, then it’s possible that your device has failed one of these checks.
Why has the smart app banner disappeared in Safari?
If you dismiss the banner by clicking the ‘x’ button, then it won’t appear again by default.
Depending on your mobile device, you may need to open a private browser tab, clear your cache or cookies, or perform some other action to reset your settings.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Are you looking for a way to create popups with Yes/No buttons on your website?
Maybe you have seen these popups used as an email list optin or another special offer on a big website. Multi-step Yes/No campaigns can improve your conversion rate by encouraging users to click on your promotion.
In this article, we will show you how to create a Yes/No optin for your WordPress site.
What Is a Yes/No Optin, and Why Should You Use One?
A Yes/No optin is a popup form that has 2 options, which are either buttons or links. You can click ‘Yes’ to opt in or ‘No’ to refuse the offer.
Sometimes these are called 2-step optins or multi-step optins because they require the user to take 2 steps instead of 1.
Here’s an example of a Yes/No optin from Advanced Coupons offering a discount deal. Users can either click on the ‘Claim Your Discount’ button or the ‘Maybe next time’ option.
Note: The options don’t necessarily need ‘Yes’ and ‘No’ labels.
It might seem strange to get users to go through an extra step before they can join your email newsletter or take some other action.
However, Yes/No popups can be highly effective. This is because they use a psychological tactic called the Zeigarnik Effect.
The Zeigarnik Effect says that when someone starts a process, they are likely to finish it. In this case, it means that someone who clicks ‘Yes’ will likely go ahead and put in their email address.
Plus, a Yes/No optin gives your visitors a choice. That feeling of freedom is powerful. It makes it more likely that your visitors will make the positive choice to opt in to your email list.
Even better, you can use the ‘No’ option effectively, too.
For instance, you could create an optin like this one from WP Mail SMTP. It appears if a user looks like they are about to leave the WP Mail SMTP site’s pricing page.
If the user clicks ‘Get WP Mail SMTP Now’, then they stay on the pricing page. Or if they click ‘I have a few questions first’, then they are directed to the Contact page. Here, they can easily contact your sales or support team, which may ultimately lead to a successful conversion.
Creating a Yes/No Popup Using OptinMonster
The easiest way to create a yes/no popup in WordPress is by using OptinMonster. It is the best lead-generation software that helps you convert website visitors into customers and subscribers.
It allows you to create beautiful popups, countdown timers, slide-in forms, and more to nudge users in the right direction.
OptinMonster is the best solution if you are looking for powerful display options for your popup. It offers multiple display rules that help detect user behavior and trigger your campaigns.
For instance, you can show the yes/no optin when a user is about exit your site or when someone clicks a link or visits a specific page.
That said, let’s create a yes/no optin using OptinMonster.
Setting Up OptinMonster and Creating a New Campaign
First, you will need to sign up on the OptinMonster website. Simply visit the website and click the ‘Get OptinMonster Now’ button.
For this tutorial, we will be using the OptinMonster Pro plan because it includes the Yes/No optins.
This lets you connect your WordPress site with your OptinMonster account. If you don’t have a premium account with OptinMonster yet, go ahead and get it.
Upon activation, you will see the OptinMonster welcome screen and a setup wizard. Go ahead and click the ‘Connect Your Existing Account’ button.
You will now see a small window where you can sign in to your account.
Simply click the ‘Connect to WordPress’ button to add your WordPress website with OptinMonster.
Now, go to the OptinMonster » Campaigns page in your WordPress admin.
Simply click the ‘Create Your First Campaign’ button to make a new campaign.
OptinMonster will now ask you to select a template or use a playbook. If you select the template option, then you can create your yes/no popup and customize it. OptinMonster also has ready-to-use campaigns inspired by successful brands.
You can go ahead and select the ‘Templates’ option.
After that, OptinMonster will show you different campaign types to choose from.
Next, you will be asked to give your campaign a name.
Once that’s done, simply click the ‘Start Building’ button.
Your chosen template will now open in the OptinMonster drag-and-drop campaign editor.
Here, you will find different options to customize your campaign. You can add different blocks like images, videos, buttons, progress bars, social media icons, and more from the menu on the left and drop them onto the template.
Editing Your Yes/No Optin in OptinMonster
By default, OptinMonster will have the Yes/No optin option enabled.
However, some templates will not have a built-in Yes/No view. With these, you will get a blank canvas to design your optin.
To enable the optin, simply click on the ‘Yes/No’ tab near the bottom of your screen. From here, you need to click the ‘Enable Yes/No for This Campaign’ button.
Next, go ahead and edit the Yes/No view as you want.
Simply click on the part of the template you want to change. For instance, you can change the text in the headline.
It’s also easy to edit the image in the campaign builder. Just click on it and then upload the image you want to use.
You may also want to change the Yes and No buttons. Simply click on them to edit the buttons. It’s super easy to change their text, color, and more.
Just make your changes in the left-hand panel, and the preview of your optin will automatically update on the right.
By default, clicking the ‘Yes’ button will take the user to the optin view of the campaign. Clicking the ‘No’ button will simply close the campaign.
You can change these actions by selecting the button and then clicking the ‘Button Click Action’ dropdown.
For example, you can redirect users to a URL, reload the page, open an email client, copy the text, click to call, and more.
Next, you now need to edit the optin view of your campaign. This is what your users will see upon clicking on the ‘Yes’ button.
Simply click on the ‘Optin’ tab at the bottom of the screen to edit the optin view. Then, edit the text, image, and anything else you want to change.
Finally, you need to change the ‘Success’ view of the campaign. This is the screen users will see after entering their email addresses.
First, click the ‘Success’ tab at the bottom of the screen. Then, go ahead and change the design until you are happy with it.
Once you have finished creating your optin, make sure to click the ‘Save’ button at the top of the screen.
Connecting Your Optin to Your Email List
If you are using your optin to gather email addresses, then you need to connect it with your email marketing service.
To do this, you must open the ‘Integrations’ tab at the top and then click the ‘Add a New Integration’ button.
Next, you can select your email provider from the list. You can also search for an email service using the search bar.
OptinMonster will then give instructions for connecting your account to your preferred email provider.
Once you have connected your account, go ahead and click the ‘Display Rules’ tab for your campaign.
Setting the Display Rules for Your Yes/No Campaign
By default, your optin will appear after the user has been on any page for 5 seconds. However, you can use different types of display rules.
For instance, you can show the yes/no optin on a specific page, after scroll distance, based on a user’s physical location, and more.
For our optin, we will use the ‘Exit Intent’ display rule. This way, our yes/no popup will appear just as a user is about to leave our WordPress blog.
OptinMonster also lets you choose the sensitivity of the Exit Intent technology.
Lastly, you can select where the campaign will appear on your website. OptinMonster will use the ‘current URL path is any page’ option by default. This way, the popup will appear on your entire website.
When you have set your display rules, click the ‘Save’ button at the top of the screen.
Making Your Yes/No Optin Live on Your Site
Now, it’s time to make your optin live on your site.
First, you need to click the ‘Publish’ tab at the top of the screen. Then, change the ‘Publish’ Status to ‘Publish’.
Your Yes/No optin will not be live on your site yet. Simply click the ‘Save’ button at the top and exit the campaign builder.
Next, you will see the WordPress Output Settings for your campaign.
Just make sure that your campaign status is ‘Published’. If not, then you must click the dropdown menu and select the ‘Published’ option.
Your campaign will now be live on your website.
Here is how ours looked on our demo site.
That’s it! You’ve successfully created a yes/no optin for WordPress using OptinMonster.
Alternative method: Another way to add a yes/no popup to your site is by using Thrive Leads. It is part of Thrive Themes suite and helps you generate leads, grow your email list, and boost conversions. The plugin lets you create lightbox popups, alert bars, slide-in popups, and more.
Yes/No Popup Types to Create to Get More Conversions
Now that you know how to make a yes/no popup, there are different types of campaigns you can create to get more conversions.
Let’s look at a few examples of yes/no popups that you can design for your WordPress website.
1. Offer Content Upgrades to Grow Your Email List
A yes/no content upgrade offers users bonus content if they sign up for your email list. For instance, you might offer spreadsheets, PDF files, eBooks, videos, and more.
This is great for getting more leads on your website. You can easily grow your email list by offering free valuable content to users.
Another way to use yes/no popups is by offering exclusive discount coupons or promoting special offers to your visitors.
This will help inform users about an offer they can take advantage of. Plus, it will boost conversions and sales on your website.
You can pair this with OptinMonster’s Exit Intent technology and show a popup just as the user is about to leave the website. For example, OptinMonster shows a yes/no optin on their website, displaying a special offer.
3. Guide New Users with a Welcome Mat
You can also show new website users a welcome mat or a full-screen popup with yes/no options to help them better understand your brand.
This is great to point people in the right direction when they first arrive on your site. You can inform them about your products and services by redirecting them to a specific blog post or landing page.
4. Convert Abandoning Visitors
Additionally, you can convert abandoning visitors by showing a yes/no popup. Simply show the popup when a user adds items to the cart but doesn’t check out.
You can offer different incentives like discounts or free downloadable content to keep visitors on your site and convert them into paying customers.
For example, Easy Digital Downloads shows a popup with yes/no options when a user tries to abandon the checkout page.
Do you want to learn how to track third-party domain requests in WordPress?
If your website is slow, then visitors may leave before it even has a chance to load. However, even if you’ve optimized every part of your website, third-party domain requests can still have a big impact on your page loading times.
In this article, we will show you how to track third-party domain requests in WordPress.
Why Track Third-Party Domain Requests in WordPress?
By reducing your page load times, you can improve the user experience, get more visitors, and boost your WordPress SEO. There are lots of ways to speed up your website, including optimizing your images and choosing the best WordPress hosting.
However, third-party domain requests can also affect your site’s performance even with the best hosting and optimization.
A third-party domain request loads content or resources from a location outside of your domain. Some common examples include content from social media sites like Twitter and Facebook, advertising networks including Google AdSense, and even some WordPress comment plugins.
A large number of third-party domain requests can slow down your website. However, sometimes even a single third-party request can block the rest of the page from loading. When this happens, WordPress will connect to the third-party URL and download all the required content, before loading the rest of your page.
With that being said, let’s see how you can speed up your website by tracking and optimizing third-party domain requests in WordPress.
How to Identify Third-Party Domain Requests in WordPress
The first step is identifying all the third-party domain requests your site is making, using Pingdom. Pingdom is a popular performance monitoring tool that allows you to monitor your WordPress server uptime. It can also show all your site’s third-party domain requests.
First, you need to visit the Pingdom website and paste your domain name into the ‘URL’ field. Then, click on ‘Start Test.’
After a few moments, Pingdom will show a breakdown of your site’s performance. To see all the third-party domain requests, scroll to the ‘File Requests’ section.
Here, you’ll see the content type, URL, and size of each request.
To find the third-party requests, simply look for any items that don’t begin with your site’s domain name.
If you want to learn more about a request, then simply hover your mouse over its bar in the waterfall chart.
Here, you’ll see all the steps that WordPress takes to get content from this third-party domain including making a DNS lookup, SSL handshake, and downloading data from that domain.
Pingdom also shows how long each step takes, so you can identify the domain requests that make the biggest impact on your site’s performance.
If you don’t recognize a third-party service, then just paste its URL into a search engine such as Google. Often, this will bring up links to documentation, pages, and forums where you can learn more about the domain.
How to Optimize Third-Party Domain Requests
Once you’ve identified the third-party domain requests that are hurting your website’s performance, there are a few different ways to optimize those requests and boost your WordPress speed.
The method that works best for you may vary depending on how your WordPress website is set up, the requests it makes, and other factors. With that in mind, simply use the quick links below to jump straight to the method you want to learn more about.
This isn’t a good option for all WordPress blogs, but removing one or more third-party requests can have a huge impact on your page loading times.
You may have added a domain request by accident, or you might have changed direction so a particular third-party request no longer works well for your business.
For example, you may have originally added Google AdSense but now make more money selling WooCommerce products on your online store. By removing Google AdSense, you might improve your store’s performance to a point where you get lots more sales, and make far more money compared to showing online ads.
Here, there’s no easy solution that will work for all websites. With that in mind, you may want to try removing different services and content from your site, and then tracking the impact this has on important metrics such as your conversion rates.
If you do decide to remove feature and plugins that make third-party domain requests, then it’s smart to back up your WordPress website. This allows you to quickly restore your website if you encounter any errors, or simply realize you made a mistake.
You may also want to put your site into maintenance mode while making this change, just in case it breaks your website.
The steps for removing third-party domain requests will vary depending on the request.
However, you can often find detailed step-by-step guides in the documentation for the related service, plugin, or software, or by typing your search query into Google. For more on this topic, please see our guide on how to properly ask for WordPress support and get it.
Method 2. Remove Unnecessary WordPress Plugins
Plugins are a huge reason why WordPress is so popular. With the right plugins, you can add missing features, extend the built-in functionality, and turn your WordPress blog into any kind of website.
However, some WordPress plugins make a lot of third-party requests and may even slow down your website. You might be completely unaware that these requests are even happening.
With that in mind, it’s a good idea to go to Plugins » Installed Plugins in the WordPress dashboard, and remove any plugins that you no longer need.
You can even try replacing multiple smaller plugins with a single WordPress plugin. For example, there are countless SEO plugins and tools on the market, but AIOSEO is a complete SEO toolkit that performs a long list of important SEO tasks.
Method 3. Preconnect to Important Third-Party Domains
Another option is to connect to the external domain right at the beginning of the page loading process. When a browser preconnects to an external domain first, it can often download the third-party content much faster.
Just be aware that preconnecting to an external URL takes resources away from loading the rest of your page. If the external resource isn’t crucial, then prioritizing it in this way may hurt the user experience by delaying the rest of your content.
To use the preconnect method, you’ll need a list of all your third-party domain requests. If you haven’t already, then you can get this information using Pingdom, and by following the process described above.
WPCode is the best code snippets plugin that allows you to add custom CSS, PHP, HTML, and more without putting your site at risk. You can also enable and disable your code snippets with the click of a button.
First, you will need to install and activate the free WPCode plugin. For more information, see our step-by-step guide on how to install a WordPress plugin.
Once the plugin is activated, go to Code Snippets » Add Snippet.
Here, you will see all the ready-made WPCode snippets you can add to your site. These include a snippet that allows you to completely disable comments, upload file types that WordPress doesn’t usually support, disable attachment pages, and much more.
Simply hover your mouse over the ‘Add Your Custom Code (New Snippet)’ option and click the ‘Use snippet’ button when it appears.
On the next screen, you need to type in a title for the code snippet. This is just for your reference, so you can use anything you want.
Then, open the ‘Code Type’ dropdown and choose ‘JavaScript Snippet.’
With that done, you’re ready to add each domain that WordPress should preconnect to.
For example, in the following code snippet we’re preconnecting to Google Fonts.
In the code editor, simply add each external URL that you want to use.
With that done, go ahead and scroll to the ‘Insertion’ settings. Here, select ‘Auto Insert’ if it isn’t already selected.
You can then open the ‘Location’ dropdown and choose ‘Site Wide Header.’
When you’re ready to make the code snippet live, scroll to the top of the page and click on the ‘Inactive’ toggle so it changes to ‘Active.
Then, click on the ‘Save Snippet’ button.
Method 4. Implement DNS Prefetching
DNS prefetching allows you to perform a DNS lookup in the background before the visitor needs the linked content or resource. This is particularly useful for third-party resources that are used across your website, such as Google Analytics, Google Fonts, or your WordPress Content Delivery Network (CDN) service.
To use DNS prefetching, simply create a new JavaScript snippet using WPCode, and by following the same process described above.
With that done, add each domain name that you want to prefetch using the following format:
After entering this information, add the code to your site-wide header by following the steps described in Method 3, and then publish the code snippet.
Method 5. Host Resources Locally
When used correctly, preconnecting and prefetching allow you to make third-party domain requests without impacting the visitor experience. However, where ever possible you should try to host resources and content locally.
Retrieving content from a local server is typically much faster, and it’s easier to improve that content’s performance. For example, you might use a caching plugin, or set up a CDN.
There are lots of different WordPress plugins and services that can help you host content locally. For example, if you want to use custom typography then you can host local fonts in WordPress rather than loading them from a third-party such as Google Fonts.
If you’re using Google Ads, Google Analytics, Campaign Manager, or other popular free Google products, then you can host the gtag.js script locally on your own server using MonsterInsights with the Performance Addon.
By replacing external domain requests with local resources, you can often improve your website’s performance without compromising on its features and content.
Method 6. Use Lazy Loading
Instead of loading all your content at once, lazy loading downloads only the content visible on the user’s screen. It will then load more content as the user scrolls down the screen. This can make it seem like the page is loading faster.
WordPress will lazy load images by default, but depending on their location it may help to lazy load externally hosted content too. For example, if you want to embed YouTube videos in WordPress blog posts, then you can choose a plugin that has lazy loading built-in.
Other plugins such as Smash Balloon YouTube Feed come with built-in caching and delayed loading for the video player. This can improve the perceived page load times, even when you’re showing content from third-party websites.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Recently, one of our readers asked if it was possible to send SMS messages to their subscribers along with email newsletters.
The answer is yes. You can easily send text messages to your website users by using one of the many SMS plugins and services for WordPress.
In this article, we will show you how to send SMS messages to your WordPress users.
Why Send SMS Messages to Your Users?
Sending SMS messages can be highly effective in bringing back customers to your WordPress website. For the best results, you can combine SMS messages with other marketing tools like an email newsletter, push notifications, and search traffic.
Text messages have a fantastic open rate. Some studies suggest that SMS open rates are as high as 98%.
Compare that with a typical open rate of just 20% for emails, and you can see why SMS messages are becoming a preferred marketing medium.
People also check text messages much more quickly than they check emails. It takes an average of 90 seconds for someone to respond to a text and 90 minutes to respond to an email.
Of course, you don’t want to overdo it. Even when they have opted in, most users won’t want daily texts from you. Even weekly might be too much.
Important: Make sure that you obey the law. Different countries have different legal requirements for text messages, particularly marketing messages.
You might also want to use SMS messages to send receipts or order updates from your WooCommerce store. We will cover how to do that later in this tutorial.
For the sake of this tutorial, we will be using the Brevo platform. However, you can also use other email marketing solutions like Omnisend, HubSpot, and more.
With that being said, let’s take a look at how to send SMS messages using Brevo.
To get started, you will need to set up an account with Brevo if you haven’t already got one. On the Brevo website, just click the ‘Sign Up Free’ button to start creating your account.
You can get started creating an account by typing in your email address and password. After that, you will need to click the ‘Create an account’ button.
Alternatively, you can use the buttons to sign up using your Google or Apple credentials.
This will bring you to a screen where you can complete your user profile. Simply fill in the form and then click the ‘Next’ button. There will be several pages to fill in.
During this process, an activation code will be sent to your phone in an SMS message to confirm the number is actually yours.
After that, you will be able to choose one of Brevo’s plans, including a free plan. The different plans include sending emails, starting at 300 emails per day. However, you will need to purchase credits to send SMS messages.
Once you have finished the account setup process, you will see your Brevo dashboard.
Before you can start sending messages, you will need to contact the support team. Go to the Brevo contact page and write a message that includes:
A note that you will be sending marketing messages
Once your account has been approved, you will get an email from Brevo. Note that this can take up to 24 hours.
Buying SMS Credits for Your Brevo Account
While you are waiting for your account to be approved, you can continue setting up your Brevo account. The first thing you need to do is activate the SMS app in Brevo.
From the Campaigns dashboard, click the ‘Create a campaign’ button.
You will see the different types of campaigns you can create. Notice that email campaigns are active while the other types of campaigns are not.
You just need to click ‘Activate’ next to SMS.
After a few seconds, you will see a message that the app was enabled successfully, and there will be a tick mark next to ‘SMS’.
You can now close the popup by clicking the ‘X’ icon at the top right.
Now that the SMS app is active, you can purchase some SMS credits.
To do that, you need to click ‘Usage and plan’ at the top of the page. This will show you how many emails and SMS credits you have to use in your campaigns.
Your current SMS balance is 0, so you will need to click the ‘Get more credits’ link.
Brevo defaults to selling you 100 messages at a time. If you like, you can purchase more credits by typing a larger number under ‘Number of messages’.
Note: It costs 1 credit to send a text message in the US, but you will need to pay more than 1 credit per message in other countries.
Once you have selected the number of credits, go ahead and complete your purchase.
Once you have bought your credits, you may need to wait up to 48 hours for them to appear in your account. You might also get an email from Brevo asking you for more details about what type of SMS marketing you plan to do.
This is to help you stay in compliance with SMS laws.
You will need to reply to them with answers to their questions before your credits can be added to your account.
Creating Your SMS Marketing List
In order to send out SMS messages, you will need to import your contact list.
You can get started by clicking the ‘Contacts’ tab on the left. Or if you are still looking at the Campaigns Dashboard, then you can click the ‘>’ arrow next to ‘Total contacts’.
This will display a list of all your contacts. Right now, you will be the only contact on the list.
Now you can click the ‘Import contacts’ button at the top of the page.
This will take you to the ‘Import options’ page. You will be given two options for importing your contacts.
You can either upload a .csv file from your computer or you can copy and paste contacts line by line. Whichever option you choose, Brevo will offer examples to help you.
Important: Your users need to have opted in for SMS marketing messages. You can collect website visitors’ phone numbers and consent using a WordPress form plugin like WPForms or a marketing popup plugin like OptinMonster.
Sending Your First SMS Campaign
Once your credits show up, you can start sending messages.
It’s a good idea to send a test message first so that you know that everything is working correctly. The phone number you use for the test message needs to belong to a contact in your list.
You can use the number you added when you first signed up. Or, if you want to use a different phone number for your test, then you will need to add a test contact in Brevo.
Simply go to the Contacts section in your dashboard and click the ‘Create a contact’ button.
A panel will pop up on the right of the screen where you can create a contact.
You need to fill in your details, including your mobile phone number.
After that, you need to add your test contact to a list.
You can use an existing list or add a new one.
Once you have done that, you need to click the ‘Create’ button at the bottom of the page. You should see a message telling you that the subscriber has been successfully added.
Now you can try sending a test SMS.
First, go to the Campaigns » SMS tab in your Brevo dashboard. Next, click either the ‘Create an SMS campaign’ or ‘Create my first SMS campaign’ button.
You can enter whatever you want for your Campaign Name. This isn’t seen by the recipients but should make sense to you when you look at your campaigns in the future.
You should also enter an SMS Sender. This will display for users in certain countries.
If you will be sending SMS messages to customers in the United States, then you must enable the ‘Manage compliance for the United States’ toggle.
This is important because it will help you follow United States laws for text messages.
This will give you two more options to fill in: an organization prefix so that your customers will recognize who the message is from, and unsubscribe instructions.
If customers in the United States or Canada will be receiving this SMS message, then you will also need to click the ‘this form’ link in the orange box to register for a toll-free number and comply with regulations.
Next, enter your SMS message. Beneath the message box, you can see how many characters you have used and how many SMS messages will be sent.
If you use more than 160 characters, then the message will be counted as 2 SMS messages.
At the bottom of the screen, click the ‘Send a test’ button when you are ready.
This will pop up the ‘Send a test’ box.
There is just one field where you should enter your mobile number, which you included when you added yourself as a contact earlier. After that, you need to click the paper airplane button to send the SMS.
You should see a message telling you that your test message has been sent successfully.
Now, check your phone to see if the text has come through. Here’s ours:
If your text hasn’t arrived, wait a minute or two, and it should appear. If not, double-check that you are using the right mobile number.
Once you know that everything’s working, you can continue setting up your campaign. Click the ‘X’ button to close the ‘Send a test’ window, and then click the ‘Next Step’ button in the top right corner of the screen.
Now, you will need to choose the contact list you want the message to go to. If you like, you can select multiple lists.
Just check all the lists you want to use, then click the ‘Next Step’ button.
Your SMS campaign is now ready to send.
You can review the details and change them if you want to, using the ‘Return to this step’ links. Once you are happy, simply click ‘Schedule’ in the top right.
You can either schedule your campaign so that your texts are sent out at a specific time, or you can send the messages immediately.
Just make sure you avoid sending the campaign early in the morning or late at night. Be mindful of time zones, too. Not everyone will remember to turn on Do Not Disturb mode overnight.
Sending SMS Messages to Your WooCommerce Customers
What if you want to send your customers notifications about their orders?
If you have decided to start an online store, then you might want to send text updates as well as emails to your customers.
Sending WooCommerce SMS Notifications Using YITH WooCommerce SMS Notifications
The easiest way to do this is with a plugin like YITH WooCommerce SMS Notifications. This plugin lets you use an SMS gateway, such as Twilio, to send SMS messages to your customers. They receive these texts when their order status changes, such as when it’s dispatched.
You can set up YITH WooCommerce SMS Notifications so that it’s enabled for all customers, or you can let customers opt-in at the checkout.
Also, you can use it to get your own SMS notifications about new orders. This makes it easy to stay on top of things if you are away from your computer.
Sending WooCommerce SMS Notifications Using FunnelKit Automations
If you are looking for an alternative, then you can use FunnelKit Automations to send SMS messages to your WooCommerce customers.
FunnelKit Automations is one of the best marketing automation tools for WooCommerce sites. It allows you to easily set up automated SMS and email campaigns right from your WordPress dashboard.
It comes with pre-built automations for new customers, first orders, post-purchase sequences, shipment tracking notifications, abandoned cart reminders, anniversary coupons, and more. Or, you can create your own workflows using the visual automation builder.
Sending WooCommerce SMS Notifications Using Uncanny Automator
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Do you want to convert your WordPress categories into custom taxonomies?
Categories are one of the two default taxonomies that help you sort your content. WordPress also allows you to create and use custom taxonomies.
In this article, we will show you how to easily convert WordPress categories to custom taxonomies.
Why and When Do You Need to Convert Categories into Custom Taxonomies?
A taxonomy allows you to organize groups of posts and custom post types on your WordPress website. By default, WordPress comes with two pre-made taxonomies: categories and tags.
However, you can also create custom taxonomies with WordPress, which can be used with existing or custom post types.
As your WordPress blog grows, you might need to convert your categories into a custom taxonomy because it can be overwhelming to file and keep track of each post in a category with different subcategories.
Using custom taxonomies for tagging allows for more accurate and detailed classifications and better content organization.
For example, if you have a recipe website, then creating categories for cuisine type, dietary restrictions, and meal type can be a bit confusing.
However, by creating a custom taxonomy for each of these topics, you can make content organization easier.
Custom taxonomies can also help improve your SEO rankings by giving you the flexibility to use more specific and targeted taxonomy terms.
Having said that, let’s take a look at how you can easily convert categories into custom taxonomies.
How to Convert WordPress Categories to Custom Taxonomies
Upon activation, head over to the Tools » Taxonomy Switcher page from the WordPress admin sidebar to convert categories to custom taxonomies.
Once you are there, you need to select the ‘Categories’ option from the ‘Taxonomy to switch from’ dropdown menu.
This means that we will be converting a category into a custom taxonomy.
Next, select the custom taxonomy that you want the categories to turn into from the ‘Taxonomy to switch to’ dropdown menu.
For example, if you have a category for dietary restrictions and you want to switch to a taxonomy of the same name, then you can select the ‘Dietary Restrictions’ option from the dropdown menu.
If you want to convert all the categories on your WordPress site into this specific custom taxonomy, then simply click the ‘Switch Taxonomies’ button.
However, if you just want to convert singular or multiple categories into this taxonomy, then you will need to add the IDs of those categories into the ‘Comma separated list of term ids to switch’ field.
To find a category id, you will need to visit the Posts » Categories page from the WordPress dashboard and hover your mouse over the category of your choice.
The category edit URL will now appear in a popup box at the bottom left corner of your screen.
From here, you can easily find your category ID, as it is the number that comes after ‘category&tag_ID=’ and before ‘&post_type’ in the URL.
Once you have found the IDs for categories, head back to the ‘Taxonomy Switcher’ page.
Next, simply add the IDs for all the categories that you want to convert into a specific taxonomy. Keep in mind that if you add more than one category ID, then you will have to separate them using commas.
Some of the categories in WordPress also have subcategories (child categories).
However, if you want to skip the child categories, then you can type the parent category next to the ‘Limit taxonomy switch for child terms of a specific parent’ option. This way, only the parent category will be switched to a taxonomy.
Finally, click the ‘Switch Taxonomy’ button to convert your WordPress category to a custom taxonomy.
You will now see the taxonomy that you have created along with the default taxonomies in the Posts menu tab in the WordPress sidebar.
Upon clicking on the custom taxonomy, you will be taken to a new page, where you can easily add terms for the taxonomy by typing in a name and slug.
Once you have done that, just click the ‘Add New’ button at the bottom to create a new taxonomy term.
Now visit your WordPress block editor by opening up a new or existing post/page.
Here, you will notice that the category you switched to taxonomy is now displayed in the block panel on the right corner of the screen. From here, you can now easily add new terms or use existing ones for your WordPress blog post.
How to Set Up Redirects From Category to Custom Taxonomy
After you turn one of your categories into a custom taxonomy, the category archive page will now show a 404 error. This is nothing to be worried about if your website is not live yet.
However, if your website is live, then search engines may have already crawled your category pages and indexed them. This means that those pages can appear in search results, and users coming from search engines will see a 404 error page.
To fix this, you need to redirect users to the new taxonomy page for each category.
AIOSEO is the best WordPress SEO plugin on the market. It comes with a powerful redirection manager addon that makes it very easy to find broken links and fix them using 301 redirections.
Note: AIOSEO also has a free version. However, you will need the pro version for this tutorial to unlock the 301 redirection feature.
Upon activation, you will need to configure AIOSEO for your website. For more detailed instructions, please refer to our guide on how to set up All in One SEO correctly.
Once you have done that, head over to the All in One SEO » Redirects page from the WordPress admin sidebar.
Here, you will see a prompt asking you to activate the redirection manager. Go ahead and click the ‘Activate Redirects’ button.
The Redirects page will now be displayed on your screen.
From here, simply add /category/.* into the ‘Source URL’ field.
Once you do that, click the gear icon in the field to open some additional settings for the source URL. From here, check the ‘Regex’ option.
After that, enter your custom taxonomy slug, e.g. /dietary_restrictions/1 into the ‘Target URL’ field.
Next, make sure that ‘301 Moved Permanently’ is chosen as the redirect option from the dropdown menu.
Finally, click the ‘Add Redirect’ button in the right corner.
Upon creation, the redirect you created will be displayed at the bottom of the page.
From here, you can always toggle the switch to ‘Inactive’ if you want to disable it.
This redirect will now send all your category archive traffic to your custom taxonomy.
However, we recommend using this method only if you don’t want to use categories at all.
If you want to redirect individual categories to a custom taxonomy page, then you may want to see our beginner’s guide on setting up redirects in WordPress.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Do you want to send automated birthday and anniversary emails in WooCommerce?
Birthdays and purchase anniversaries are great opportunities to get in touch with your customers. By marking these special dates, you can make customers feel valued, boost engagement, and even get more sales by offering incentives like personalized coupon codes and discounts.
In this article, we will show you how you can send birthday reminders and purchase anniversary emails in WooCommerce.
Why Send Automated Birthday & Anniversary Emails?
If you run an online store, then an email list allows you to promote your products and services to people who have already shown an interest in your business.
After building an email list, it’s important to keep subscribers engaged and interested in what you have to say. One option is to send automated birthday and anniversary emails.
Immediately, this makes customers feel more valued and appreciated, which can boost brand loyalty. However, you can often get even more engagement and sales by offering rewards such as discounts, coupon codes, and free gifts.
These email campaigns are often very popular with customers. In fact, according to Omnisend, birthday emails have a 45% open rate, a 12% click-through rate, and a 3% conversion rate, which is much higher than the national average.
With that being said, let’s see how you can send automated birthday and anniversary emails in WooCommerce.
How to Send Automated Birthday & Anniversary Emails
The easiest way to send automated birthday and anniversary emails in WooCommerce is by using FunnelKit Automations Pro. FunnelKit is the best automation tool for WooCommerce websites. It allows you to customize your WooCommerce emails using a drag-and-drop builder, and create automated email and SMS campaigns.
First, you will need to install and activate the FunnelKit Automations Pro plugin. For more details, please see our guide on how to install a WordPress plugin.
Now, you’re ready to create automated birthday and anniversary reminder emails. Simply use the quick links below to jump straight to the email campaign you want to create.
How to Send Automated Birthday Emails in WooCommerce
Personalized birthday messages can help you build a stronger relationship with your customers, while also encouraging brand loyalty.
Even better, you can add a gift to your birthday messages, such as a personalized coupon code, a free upgrade, or a complimentary digital download such as an ebook. These gifts can boost engagement, get customers to visit your website, and even get you more sales.
With that being said, let’s see how you can send automated birthday emails using the FunnelKit Automations plugin.
Step 1. Get the Customer’s Date of Birth
Before you can send automated birthday emails, you’ll need to know the customer’s date of birth. You can collect this information on WooCommerce’s checkout page, My Account page, or thank you page.
To get started, go to FunnelKit Automations » Settings in the WordPress dashboard.
In the left-hand menu, select ‘Birthday Reminders.’
You can now choose where to add the date of birth field.
The first option is to collect this information on the checkout page.
By making this field part of the checkout process, you’re guaranteed to get the information. However, this does add an extra step to the purchasing process, which may increase your cart abandonment rates.
To add a field to the WooCommerce checkout page, simply check the box next to: ‘Enable Date of Birth field on WooCommerce checkout.’
By default, FunnelKit will use a ‘Date of Birth’ label but you can replace this with your own custom phrasing like ‘Birthday’ by typing into ‘Field Label.’
You can also change where the field appears on the WooCommerce checkout page by opening the ‘Field Position’ dropdown.
Then, choose between After Billing Details, Before Order Notes, or After Order Notes.
Another option is adding the field to the ‘Account details’ section of WooCommerce’s My Account page.
This allows you to collect the date of birth without adding friction to the purchasing process. However, there’s no guarantee that every customer will visit the My Account page and enter their date of birth.
To add this field to the My Account page, just check the box next to the ‘Enable Date of Birth field on My Account’ option.
To change the label, simply type your custom messaging into ‘Field Label.’
Finally, you can add the birthday field to the thank you page using a shortcode.
In this way, you can collect the date of birth without adding more steps to the checkout process. The customer will also see the thank you page every time they make a purchase, so they’ll get multiple chances to enter their date of birth.
To create a shortcode, check the box labeled ‘Enable Date of Birth collection form shortcode on the Thank you page.’
By default, FunnelKit will show the following message when a customer enters their date of birth: Thank you for submitting your Birthdate!
To replace this with your own messaging, simply type into the ‘Success Message’ field.
After that, FunnelKit will create the shortcode.
Simply click on the ‘Copy’ button to copy the code to your computer’s clipboard.
In the popup that appears, click on ‘Birthday Reminder.’
Then, select ‘Done’ to add the trigger to your workflow.
The next step is configuring the trigger, so go ahead and click on ‘Birthday Reminder.’
In the popup that appears, you can choose whether to run the automation on the contact’s birthday, or before the contact’s birthday.
In this guide, we’ll show you how to create follow-up emails. For example, you might send the customer a personalized coupon code 7 days before their birthday, and then a follow-up email warning that their coupon is about to expire.
With that in mind, you may want to select ‘Before contact’s birthday’ and then type in the number of days.
Another option is to select ‘On contact’s birthday.’
This is a good choice if you’re simply wishing the customer a happy birthday, or you’re sending them a free gift coupon that doesn’t expire.
With that done, you need to tell FunnelKit when to send the birthday email. Typically, you’ll want to use the time when your customers are most likely to be online.
That said, it helps to know as much about your customers as possible. If you haven’t already, then we recommend installing Google Analytics in WordPress. This will help you learn more about your customers, including their location and time zone.
By continuously monitoring and fine-tuning all your custom WooCommerce emails, you should be able to improve your open rates and conversion rates.
To send the automated birthday email at a specific time, simply type into the fields that show ‘HH’ (hour) and ‘MM’ (minute) by default.
It is possible for a customer to be in the same workflow multiple times, simultaneously.
This may be a good idea for some automated workflows, such as upselling or cross-selling automations where multiple campaigns may be running at once. However, this doesn’t make sense for an automated birthday campaign, so make sure you select ‘Once.’
When you are happy with how the trigger is set up, simply click on the ‘Save’ button.
Step 3. Create a Personalized Birthday Coupon (Optional)
Many businesses send their customers a coupon code on their birthday. This can make customers feel valued, while also getting you more engagement and sales.
With that in mind, you may want to create a personalized coupon that you’ll add to the birthday email. To do this, click on the ‘+’ and then select ‘Action.’
In the popup that appears, click on the ‘WooCommerce’ tab.
Then, select ‘Create Coupon.’
Finally, click ‘Done’ to add the action to your workflow.
Back in the main FunnelKit editor, click on the action you just added. This opens a popup where you can customize the ‘Create Coupon’ action.
To start, type a name for the coupon into the ‘Coupon Title’ field. This is just for your reference so you can use anything you want.
After that, choose the type of coupon that you want to create, using the ‘Discount Type’ dropdown menu.
After making a decision, you’ll need to type the discount amount into the ‘Amount’ field.
FunnelKit automatically creates a unique coupon code for each contact. However, you can add a prefix to the start of the coupon, which can either be plain text or dynamic merge tags.
FunnelKit will replace merge tags with real text every time it creates a code, so this is a great way to create personalized coupons.
Since you’re creating a birthday email, it’s a good idea to include the customer’s name in the coupon. This can catch their attention and also makes your code easier to remember.
You can add the customer’s name using a merge tag, so click on the ‘{{.}}’ icon.
Note: Some products use other names for merge tags. WPForms, for instance, calls them smart tags.
This opens a popup where you can look through all the available merge tags.
When you find a tag you want to use, you might see either a ‘Copy’ or ‘Settings’ icon. If you see the ‘Copy’ symbol, then simply click to copy the merge tag.
With that done, you can go ahead and paste the tag into the ‘Coupon Code Prefix’ field.
As you can see in the following image, you can use a mix of plain text and tags.
When looking through the tags, you may see a ‘Settings’ icon instead of a ‘Copy’ icon.
For example, the following image shows a ‘Settings’ icon next to the Contact First Name merge tag.
This icon allows you to set a fallback, which FunnelKit will use if it doesn’t have access to the real value.
If you see a ‘Settings’ icon, then give it a click and type some text into the ‘Fallback’ field.
After creating a fallback, click on ‘Copy.’ With that done, simply paste the merge tag into the ‘Coupon Code Prefix’ field.
By default, the coupon will never expire. A sense of urgency and FOMO can encourage customers to use the coupon, so you may want to select the button next to either ‘Expire after Specific Days’ or ‘Expire on Specific Date.’
Customers love free shipping, so you may want to consider selecting the ‘Yes’ radio button under ‘Allow Free Shipping.’
When you’re happy with how the coupon is set up, make sure to copy the code under the ‘Coupon Title.’
You’ll need to add this code to the birthday email, so store it somewhere safe.
With that done, click on ‘Save’ to store your changes.
Step 4: Design the WooCommerce Automated Birthday Email
Now, it’s time to create the WooCommerce email that you‘ll send to customers.
To get started, click on the ‘+’ button and then select ‘Action.’
In the popup that appears, choose ‘Send Email.’
Then, click on ‘Done.’
You can now create an email by typing in a subject and previewing it.
You can use a mix of plain text and merge tags. To add a merge tag, just click on the ‘{{.}}’ icon next to the field where you want to use the tag.
You can then add merge tags by following the same process described above.
When you’re happy with the subject and preview, scroll to the small text editor.
Here, you can create the email body text by typing into the editor. You can also add dynamic tags by selecting ‘Merge Tags’ and then following the process described above.
To add your coupon code, simply paste or type in the {{wc_dynamic_coupon id='6'}} code you copied in the previous step. Double-check the ID number for the discount you’re sending the user.
The text editor has all the standard text formatting options, so you can add links, change the text size, change the font, and more.
To see how the email will look to customers, simply click the ‘Show Preview’ button.
When you’re happy with how the birthday email is set up, don’t forget to click on the ‘Save & Close’ button.
Step 5: Add Follow-up Emails to the Birthday Campaign
At this point, you might want to add one or more follow-up emails to the campaign. For example, you might send the customer’s birthday coupon in advance, followed by a simple greeting on their birthday.
When creating follow-up emails, it’s important to add a delay so the customer doesn’t get all the messages at the same time.
To do this, click on the ‘+’ icon and then select ‘Delay.’
On this screen, open the dropdown that shows ‘Minutes’ by default and choose a value from the list. When creating a birthday email sequence you’ll typically want to select either ‘Days’ or ‘Weeks.’
After that, type in the value you want to use, such as 1 Week or 3 Days.
With that done, you can set the time when FunnelKit will send the follow-up email.
It’s usually a good idea to send emails at a time when the customer is most likely to be online, or when you typically get the highest open rates.
To do this, just check the following box: ‘Delay until a specific time of day’.
You can now set a time using the new settings that appear.
By default, FunnelKit will use the timezone in your WordPress settings. However, you may want to schedule the message based on the customer’s timezone, by checking the ‘In Contact Timezone’ box.
When you’re happy with how the delay is set up, click on ‘Save.’
With that done, it’s time to create the follow-up email. Go ahead and click on the ‘+’ icon and then select ‘Action’.
In the popup that appears, select ‘Send Email.’
After that, click ‘Done.’
This opens a popup where you can create a subject and preview, and type in body text by following the same process described above.
When you are happy with the follow-up email, don’t forget to click on ‘Save & Close.’
To add more delays and follow-ups, simply repeat these steps.
When you are ready to make the automation live on your WordPress website, click on the ‘Inactive’ slider so that it turns to ‘Active.’
That’s it. FunnelKit will now send automated birthday emails to your customers.
How to Send Automated Anniversary Emails in WooCommerce
Purchase anniversaries are an opportunity to get in touch with customers, and remind them about your online store.
You can also use anniversary emails to get more conversions. For example, if you sell physical products, then you might encourage customers to reorder the item by offering them a buy one get one free coupon or free shipping.
If you sell subscriptions using a plugin such as WooCommerce Subscriptions, then you can encourage the customer to renew their annual subscription by offering them a complimentary upgrade.
Even better, you can present these coupons and special offers as an exclusive reward for being a loyal customer. This can make customers feel valued and encourages them to take advantage of their reward.
Step 1. Create an Anniversary Email Automation For WooCommerce
To start, you’ll need to create a new WooCommerce automation by going to FunnelKit Automations » Automations (Next Gen).
Here, select Add New Automation.
Now, you’ll see all the ready-made automation templates you can use.
To create an anniversary email, click on ‘Start from Scratch’.
You can now type in a name for the automation. This is just for your reference, so you can use anything you want.
With that done, click on ‘Create.’
Step 2. Add an Order Created Trigger
The first step is adding the workflow trigger, so click on ‘Select Trigger.’
In the popup that appears, select the ‘WooCommerce’ tab.
Then, click on ‘Order Created.’
Next, click ‘Done’ to add the trigger to your workflow.
The next step is configuring the trigger, so go ahead and click on ‘Order Created.’
You can now choose the order status that you’ll use in the trigger.
Since you’re sending a purchase anniversary email, you’ll typically want to check the box next to ‘Completed.’
However, you may want to select ‘Draft’ or ‘Processing’ if incoming orders take a while to complete. For example, if you approve orders manually, then it may make sense to use the date when the order was created, rather than the completion date.
By default, FunnelKit will run this automation workflow for every product the customer buys. This is a good choice if your online marketplace only has a few products, or you sell more expensive and luxurious items.
However, if your customers often buy lots of small products, then running this workflow for every single purchase may create lots of anniversary emails. This can quickly become annoying and frustrating for the customer.
With that being said, you may want to run the automated anniversary workflow for specific products only. To do this, select the ‘Specific Products’ radio button and then type each product into the ‘Search by name’ field.
Next, you can choose whether the customer can be in this workflow multiple times, simultaneously. The default setting is ‘Once,’ so let’s look at how this might work on your WordPress website.
If a customer buys Item 1, then FunnelKit will add them to the anniversary automation for Item 1. However, if the shopper then purchases Item 2, they won’t be added to the anniversary workflow for Item 2, since they’re already in the workflow.
This can stop FunnelKit from sending lots of anniversary emails to the same customer, in a short space of time.
Another option is adding the customer to the workflow every single time they buy an item. This is a good choice if you sell more expensive or luxury items. For example, if you run an online boutique shop then it may make sense to celebrate every single purchase anniversary.
To make this change, select the button next to ‘Multiple Times.’ Then, click the following toggle: Allow currently active contacts in this automation to re-enter again.
When you’re happy with how the trigger is set up, click on ‘Save.’
Step 3. Add a Delay
Now, you need to set a delay. This is how long the automation will wait before sending the anniversary email to customers.
To get started, click on ‘+’ and then select ‘Delay.’
In the popup, open the dropdown that shows ‘Minutes’ by default and choose a value from the list. When creating an anniversary email you’ll typically want to select ‘Months’ or ‘Days.’
After that, type in the value you want to use. For example, if you want to mark the customer’s 1 year purchase anniversary, then you’ll need to set the delay to 12 months or 365 days.
It typically makes sense to send the anniversary email when the customer is online.
With that in mind, you may want to type a time into ‘Delay until a specific time of day.’
By default, FunnelKit will use the timezone in your WordPress settings.
However, you may want to use the customer’s timezone instead, by checking the ‘In Contact Timezone’ box.
With that done, click on ‘Save’ to store your settings.
Step 4. Create a Personalized Coupon Code (Optional)
You may want to encourage customer loyalty by sending a personalized coupon code.
This is a particularly good option if a customer’s subscription is due to expire. Instead of simply reminding the customer about the expiry date, you can congratulate them on being a loyal subscriber and offer them a discount if they renew their subscription in WooCommerce.
To create a personalized coupon code, click on the ‘+’ icon in the FunnelKit editor. Then, select ‘Action.’
In the popup that appears, select the ‘WooCommerce’ tab.
Then, click on ‘Create Coupon.’
Finally, click ‘Done’ to add the action to the workflow.
You can now click on the ‘Create Coupon’ action.
This opens a popup where you can create the coupon, and personalize it by adding FunnelKit merge tags.
For step-by-step instructions, simply follow the same process described above.
When you’re happy with how the coupon is set up, copy the small pieces of code under the ‘Coupon Title.’
In the next step, you’ll add this code to the anniversary email, so store it somewhere safe.
When you’re finished, click on ‘Save’ to add the coupon code to your workflow.
Step 5. Design the WooCommerce Anniversary Email
Now, it’s time to create the email that FunnelKit will send to customers on their anniversary, by clicking the ‘+’ button.
Then, select ‘Action.’
In the popup that appears, choose ‘Send Email.’
Then, click on ‘Done.’
You can now create an email by typing in a subject, preview, and body text.
You can also personalize the email by adding merge tags. For example, you might include the customer’s name, your store name, and other important information.
For step-by-step instructions on how to use merge tags, simply follow the same process described above.
If you’ve created an anniversary coupon, then you can add it using the code you copied in the previous step.
When you’re happy with the anniversary email, just click on ‘Save & Close.’
Step 6. Add Follow-Up Emails to the Anniversary Email Workflow
At this point, you might want to add one or more follow-up emails to the campaign. For example, you might remind customers when their anniversary coupon is due to expire.
When creating follow-up emails, it’s important to add a delay so customers don’t get all your messages at the same time.
To create a schedule, click on the ‘+’ icon and then select ‘Delay.’
In the popup that appears, set the delay by following the same process described above. When you’re happy with the delay, click on ‘Save.’
With that done, it’s time to create the follow-up email. Simply add a ‘Send Email’ action to your workflow by repeating the same steps described above.
You can now type in the subject line, preview, and body text.
When you’re happy with the follow-up email, just click on the ‘Save & Close’ button.
Simply repeat the exact same steps to add more delays and follow-up emails.
Step 7. Publish Your Anniversary Emails in WooCommerce
When you’re finally ready to make the automation live on your WordPress website, click on the ‘Inactive’ slider so it shows ‘Active’ instead.
FunnelKit will now send anniversary emails to all your customers and subscribers.
OptinMonster is one of the best email capture plugins for WordPress used by over 1.2 million websites. It has everything you need to turn visitors into email subscribers.
OptinMonster allows you to create eye-catching email signup forms including popups, floating bars, full-screen welcome mats, slide-in scroll boxes, inline personalized lead forms, gamified spin-to-win optins, and more.
OptinMonater comes with over 400 professionally-designed templates that you can customize using the drag-and-drop builder.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Often, you will find custom fields mentioned in various WordPress tutorials around the web. Still, you will likely not see the custom fields option on your site, especially if you recently started your WordPress blog.
In the past, custom fields were visible by default on the post editing screen of all WordPress sites.
However, the WordPress core development team decided to hide it by default for all new users since it is an advanced feature.
They also made it easy for anyone to make the custom fields visible with just a few clicks from within the post editing screen.
Simply create or edit an existing post/page, then click on the three-dot menu in the top right corner of the screen.
At the bottom of the menu, click on the ‘Preferences’ option.
This will bring up the block editor ‘Preferences’ popup. From here, you need to switch to the ‘Panels’ tab and switch the toggle next to the ‘Custom Fields’ option.
Note: If you don’t see the Custom Fields option on your site, then please scroll to the troubleshooting section below in this article.
WordPress will then tell you that a page reload is required to enable Custom Fields.
Simply click on the ‘Enable & Reload’ button to continue.
The editor screen will then reload, after which you can scroll down to the bottom of the page and find the ‘Custom Fields’ box there.
WordPress remembers your display choice and will continue to display the custom fields box whenever you edit posts or pages on your WordPress website.
You can now use the Custom Fields box to add, edit, and delete custom fields and their values.
What Are Custom Fields? What Can You Do With Them?
By default, when you write a new post, page, or any content type, WordPress saves it into two different areas. The first part is the body of your content that you add using the block editor.
The second part is the information about that particular content. For example, title, author name, date/time, and more. This post information is called metadata.
Apart from the default post metadata, WordPress also allows you to save custom metadata by using custom fields.
WordPress developers use custom fields to store custom post metadata for your posts. For example, the All in One SEO plugin uses custom fields to store SEO settings for your posts.
However, plugin developers usually create custom meta boxes instead of using the default custom fields box. This makes it easier for users to input information.
If you want to create a custom meta box to easily input custom metadata, then see our guide on adding custom meta boxes in WordPress.
Troubleshooting Custom Fields in WordPress
Recently one of our readers came to us with a problem where the Custom Fields option was missing from the block editor preferences. After some investigation, we were able to find the cause of the issue.
If your WordPress site is missing the Custom Fields option under the ‘Preferences’ menu, then you need to check if you have the Advanced Custom Fields (ACF) plugin installed and activated on your website.
In ACF version 5.5.13, they added a setting to remove the default WordPress custom field meta box. This speeds up the load times on the post editing page. The idea is that you shouldn’t need the default meta box since you are using ACF.
However, if you want to enable the default WordPress custom field meta box, then you need to add the following code to your WordPress theme using the functions.php file or WPCode:
We hope this article helped you fix the custom fields not showing issue on your WordPress site. You may also want to see our ultimate list of the most useful WordPress tips, tricks, and hacks and our expert picks for the must have WordPress plugins to grow your website.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Do you want to add an affiliate disclosure for each blog post automatically?
Affiliate marketing is one of the easiest ways to make money online. However, if you don’t disclose your affiliate links then you could end up in legal trouble.
In this article, we will show you how you can add an affiliate disclosure to all your WordPress blog posts.
Why Add an Affiliate Disclosure to Each WordPress Blog Post?
With affiliate marketing, you earn a commission every time someone clicks a referral link and makes a purchase. It’s a great way to make money online blogging with WordPress.
However, you must make it clear that your links are paid advertisements by adding an affiliate disclaimer. That just means posting a short notice explaining what affiliate marketing is, and that you get money from talking about the product or service.
Many countries have laws about failing to disclose paid endorsements. For example in the United States, you might get a fine from the Federal Trade Commission. You may even end up banned from reputable networks such as Amazon affiliates.
Even if you don’t get into legal trouble, customers who click on undisclosed affiliate links may feel tricked and stop visiting your WordPress website.
How to Add an Affiliate Disclosure to Each WordPress Blog Post
One option is to publish the affiliate disclaimer on its own page, as we do on WPBeginner.
You can then add a link to every page that features an affiliate URL. This may be a good choice if you have a longer disclosure and don’t want to distract from the post’s content.
If yours is short, then you can often add the full text of the disclaimer to every post.
No matter which option you choose, you can save time and effort by adding the affiliate disclosure automatically. Simply use the quick links below to jump straight to the method you want to use.
Pretty Links comes with an advanced auto-linking feature that allows you to enter the keywords or phrases that you want to turn into affiliate URLs.
Every time you type this word or phrase, Pretty Links will turn it into an affiliate URL automatically. Even better, if you have created a disclosure notice page, Pretty Links can also add a link to it in the post.
For example, if you add “MacBook Pro†as a keyword and then use that phrase in a new post, then Pretty Links will automatically turn “MacBook Pro†into an affiliate URL and add a link to your disclosure notice page.
Note: Pretty Links won’t insert the disclosure link if you only add affiliate URLs manually. It only works when a post uses automatic keyword linking.
To get started, you’ll need to install and activate Pretty Links. If you need help, then please see our guide on how to install a WordPress plugin.
Upon activation, go to Pretty Links » Activate. You can then add your license key to the following field: ‘Enter Your Pretty Links Pro License Key.’
After that, click on the ‘Pro’ tab. In the ‘Keywords’ field, type in each word or phrase where you want to automatically insert this affiliate URL.
Simply repeat this process for all your affiliate links.
Every time it adds this affiliate URL, Pretty Links will also add a link to your disclosure notice.
The next step is creating the disclosure notice page that Pretty Links will link to. Simply go to Pages » Add New. You can then type in your affiliate disclaimer and add any categories or tags that you want to use.
When you’re happy with your disclaimer, publish the page to make it live. It’s a good idea to make a note of the page’s URL, as you’ll need it in the next step.
Once you’ve done that, simply go to Pretty Links » Options. Then, click on the ‘Replacements’ tab.
Here, check the ‘Enable Replacements’ box if it isn’t already selected.
After that, check the ‘Link to Disclosures’ box. In the ‘URL’ box, go ahead and enter your affiliate disclosure URL.
By default, Pretty Links will use ‘Affiliate Link Disclosures’ as your link’s text. However, you can change this to anything you want by typing into the ‘Text’ field.
You can also change where Pretty Links adds the affiliate disclaimer link. By default, it shows the URL at the bottom of the post, so it doesn’t distract visitors from the post’s content.
Another option is to add the disclaimer to the top of the post. This is where we include it on WPBeginner.
This lets visitors know the post contains an affiliate link before they start reading, which is a good way to build trust with your audience. However, some people may see the disclaimer and decide not to stay on the page, which can increase your bounce rate.
You can also add the disclaimer to both the top and bottom of each post. This may be a good idea if you write very long posts, but most sites don’t need multiple disclosures per page.
To place the affiliate URL, simply open the ‘Position’ dropdown and choose Bottom, Top, or Top and Bottom.
Once you’ve done that, just scroll to the bottom of the page.
Then, click on the ‘Update’ button.
Now, Pretty Links will add an affiliate disclosure link every time it auto-inserts an affiliate URL to your posts, pages, or custom post types.
Method 2. Add Affiliate Disclosure Using WPCode (More Customizable)
Sometimes you may want to add the affiliate disclosure to different areas of every blog post. For example, you might show the disclosure after you mention each affiliate product for the first time.
In this case, you can create a shortcode that adds your affiliate disclaimer. This gives you complete control over where the disclosure appears, without you having to type the entire text every single time.
The easiest way to create a custom shortcode is using WPCode. This plugin lets you add code snippets to WordPress without editing your theme’s functions.php file.
WPCode also helps you avoid common errors by performing smart code snippet validation.
There are lots of ways to add an affiliate disclosure using WPCode. Besides the shortcode method, we’ll also share an easy way to automatically add the disclaimer to every post, page, or custom post type.
Upon activation, go to Code Snippets » Add Snippet.
This will bring you to the ‘Add Snippet’ page where you can see all the ready-made snippets that you can use on your site.
Since we want to add custom code in WordPress, hover your mouse over ‘Add Your Custom Code (New Snippet).’ Then, click on ‘Use snippet’ when it appears.
To start, enter a title for the custom code snippet.
This could be anything that helps you identify the snippet in the WordPress admin area.
We’re going to add a PHP snippet, so open the ‘Code Type’ dropdown and choose the ‘PHP Snippet’ option.
You can then go ahead and paste the following code into the code box:
function disclosure() {
return "<p class='disclosure'>This site may contain links to affiliate websites, and we receive an affiliate commission for any purchases made by you on the affiliate website using such links.</p>";
}
add_shortcode( 'disclosure', 'disclosure' );
You can use any text as your affiliate disclaimer, simply by editing the code above. For example, you might want to add a link in HTML to your affiliate disclosure page.
Once you’ve done that, scroll to the ‘Insertion’ section and make sure ‘Auto Insert’ is selected.
Then, open the ‘Location’ dropdown and choose ‘Frontend Only’ since we only want to use this code on our site’s frontend, which is what visitors see when they visit your site.
You can also organize your snippets by adding tags.
When you’re happy with how the snippet is set up, scroll to the top of the screen and click on ‘Save Snippet.’
After that, you can make the code snippet live by clicking the ‘Active’ toggle.
Finally, don’t forget to save the change by clicking on ‘Update.’
Now you can add the affiliate disclosure to any page, post, or custom post type using the [disclosure] shortcode. For more details on how to place the shortcode, you can see our guide on how to add a shortcode in WordPress.
How to Automatically Display the Affiliate Disclosure with WPCode
With WPCode, there are lots of different ways to add an affiliate disclosure to your WordPress website, including automatically adding it to every post.
This can save you a lot of time and effort, since you don’t need to add the shortcode manually. However, the disclosure will appear in the same location on every page.
To automatically add the disclaimer, simply create a new custom code snippet by following the same process described above. However, this time open the ‘Code Type’ dropdown and select ‘HTML Snippet.’
You can now add your disclaimer in the code editor, complete with the formatting that you want to use. For example, here we’re adding a simple disclaimer as a new paragraph:
<p>This site may contain links to affiliate websites, and we receive an affiliate commission for any purchases made by you on the affiliate website using such links.</p>
Next, scroll to the ‘Insertion’ section and open the ‘Location’ dropdown.
You can now choose where this disclaimer should appear, such as ‘Insert After Post’ or ‘Insert Before Content.’
You can then go ahead and enable the snippet by following the same process described above. WPCode will now automatically show the disclaimer on every page, post, and custom post type, without you having to add the shortcode manually.
If you’re using a block-based theme like Hestia Pro, then you can add an affiliate disclosure to your theme’s blog post template.
This is a good choice if you want to show the exact same disclosure on every blog post. However, you won’t have the option to change the style or text on individual posts, so it’s not a good choice if you want to show different information on different pages.
To use this method, go to Themes » Editor in the WordPress dashboard.
By default, the full-site editor will show your theme’s home template, so you’ll typically want to select a new template.
If you want to show the affiliate disclosure across your entire website, then we recommend adding it to the footer template part.
However, if you just want to show the disclaimer on your blog posts, then click on Templates on the left-hand side of the screen in the Design section.
The editor will now show all the layouts that make up your WordPress theme.
Simply click go ahead and click on ‘Single.’
WordPress will now show a preview of the template.
To edit this template, go ahead and click on the small pencil icon.
With that done, click on the blue ‘+’ icon in the top left corner.
In the search bar that appears, type in ‘Paragraph’ to find the right block.
You can now drag and drop the block onto the area where you want to show the disclaimer.
Now, click on the block and type in your affiliate disclaimer.
You may also want to change how the disclaimer looks.
To change the font size, background color, and more, simply click to select the paragraph block. Then, select the ‘Block’ tab in the right-hand menu.
You can now change the background color and text color, or make the disclaimer bigger or smaller using the settings in the right-hand menu.
When you’re happy with how the disclaimer looks, click on the ‘Save’ button.
Now, if you visit any blog post on your affiliate website, you’ll see the disclaimer in action.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.