- Ashik Nesin
We recently talked about showing Geo Location Specific Content in WordPress
Today let's continue that and see how to implement that in Divi Theme
Follow the blog post and set your custom filters
For example, in that post, we've created a custom filter that will check if the visitor is from the US region.
apply_filters('is_us_region',null) would return
false depending on the visitor's IP.
Similarly, you can create a custom filter depending on your use cases.
Geo-Specific Content for Divi
We'll be using Content Visibility for Divi Builder to display content based on custom conditions.
It adds a Content Visibility field in Divi Builder in which we can invoke our custom function. And if our custom function returns true then only the block will be displayed.
// US Region apply_filters('is_us_region',null); // Other Regions !apply_filters('is_us_region',null);
Happy Geo-specific content!