PersonalizeWP is a WordPress plugin that allows you to control who can see a WordPress block and when they can see that block. It works with any block and is great for marketing. It can show personalized sales, offers, custom forms, and more. In this post, we’ll look at PersonalizeWP and see how to use it to show or hide a WordPress block. I’ll use WS Form for my examples.
Install PersonalizeWP
First, install and activate PersonalizeWP by going to Plugins > Add New Plugin. Search for PersonalizeWP, click Install Now, and then Activate.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/01-Intsall-PersonalizeWP.jpg?resize=999%2C474&ssl=1)
Next, view the product presentation and set up your plugin.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/02-PersonalizeWP-Presentation.jpg?resize=999%2C474&ssl=1)
Integrate PersonalizeWP with WS Form
PersonalizeWP works with any WordPress block. This includes WS Form. It integrates well with any form created with WS Form, allowing you to show or hide the form based on the conditions you choose. This integration is automatic, so you don’t have to do anything but make your selections. Let’s look at those selections and see how they work with WS Form.
First, add a WS Form block to your WordPress post or page.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/03-WS-Form-block.jpg?resize=999%2C506&ssl=1)
Next, with the WS Form block selected, choose the form you want to use by selecting it from the Form dropdown box in the sidebar on the right.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/04-WS-Form-choose-form.jpg?resize=1000%2C506&ssl=1)
You’ll notice a new set of options below this section called Personalize. This was automatically added to the options when you installed PersonalizeWP. Integration with WS Form was instant. This section includes two options under Rules. The first is an IF statement and the second is a THEN statement. Here’s where you can choose and add rules that apply to your WS Form.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/05-WS-Form-Personalize.jpg?resize=1000%2C541&ssl=1)
Personalize IF Rules
The IF rules specify the type of user you want to target for your WS Form. Selecting the IF dropdown box shows your premade or custom options. Options include the time they’ve spent on the page, the type of device they’re using, whether or not they’re a new or returning visitor, their local time, their location, and whether they’re logged in or not.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/06-WS-Form-Personalize-IF-rules.jpg?resize=1001%2C480&ssl=1)
You can add as many IF rules as you want. Simply click the plus icon and choose the rule from the list. The IF rules work as an AND statement, so all rules must be met for the action to take place.
Once you’ve added an IF rule, the plus icon turns into a minus icon. Click the minus icon to remove the rule. In this example, I’ve added three IF rules. In this example, the visitor must be on the website for at least 30 seconds, be a new visitor, and be based in the UK. If any of the three conditions are not met, PersonalizeWP will not go forward to the next step, which is to perform an Action.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/07-WS-Form-Personalize-add-more-IF-rules.jpg?resize=1000%2C515&ssl=1)
Personalize THEN Actions
The THEN rules tell WS Form what to do if the IF rules have been met. It’s a basic IF THEN statement. IF this rule is met, THEN perform this action. The THEN actions include showing or hiding the form. You can only include one THEN action because using both would cancel each other. The Show option is the default, which will display the form if the conditions are met.
In this example, if the visitor has been on the website for 30 seconds or more, and they’re a new visitor, and they’re in the UK, the form will display for them. If any of the three conditions is not met, the visitor will not see the form.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/08-WS-Form-Personalize-THEN-rules.jpg?resize=1001%2C521&ssl=1)
Creating a Custom PersonalizeWP
If you need a rule for your WS Form that isn’t built into PersonalizeWP, you can create your own. In the WordPress dashboard, go to Personalize > Personalization and click Create Rule.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/09-WS-Form-Personalize-Create-New-Rule.jpg?resize=999%2C474&ssl=1)
This opens the rule editor, where you can create as many rules as you want. Enter the name of your rule and choose the category from the Category dropdown box. Categories include device types, location, other, purchases, time, and user types. For my example, I want the form to show based on the date, so I’ve selected Time for the category.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/10-WS-Form-Personalize-Name-and-category.jpg?resize=1000%2C503&ssl=1)
Next, choose the Conditions. They include the location, their logged-in status, time on the page, new visit, last visit, visit period, visit time, device type, and date. I’ve selected Date so I can have the form display on a specific day.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/11-WS-Form-Personalize-conditions.jpg?resize=1000%2C506&ssl=1)
Next, choose a Comparator. These options will vary based on the Condition you’ve selected. The Comparator options for Date include Before, After, and Is. I’ve selected Is so the form will show on the date I’ll choose.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/12-WS-Form-Personalize-comparitor.jpg?resize=1000%2C503&ssl=1)
Finally, choose the Date. This specifies the rule to only display on the date I’ve selected. I can now add a new rule or save this rule by clicking Create rule.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/13-WS-Form-Personalize-date.jpg?resize=1000%2C504&ssl=1)
I can now choose the new rule from the dropdown box when I add a form to the content. I’ve selected the new rule and set the action to show the block. Now, my form will only display on the date that I selected when I created the rule.
![](https://i0.wp.com/randyabrown.com/wp-content/uploads/2024/07/14-WS-Form-Personalize-new-rule-results.jpg?resize=1001%2C520&ssl=1)
Ending Thoughts on PersonalizeWP and How it Integrates with WS Form
That’s my look at PersonalizeWP and how it controls the visibility of WordPress blocks based on user rules that you set. integrates with WS Form. It works well with any WordPress block and integrates with the Gutenberg editor automatically. It’s easy to use and I recommend it for showing and hiding your content.
Have you tried PersonalizeWP to control the visibility of your WordPress blocks? Let me know in the comments below.
0 Comments