Every week, we provide you with new and free Divi layout packs which you can use for your next project. For one of the layout packs, we also share a use case thatโll help you take your website to the next level.
This week, as part of our ongoing Divi design initiative, weโre going to show you how to add an interactive map to Diviโs Travel Blog Layout Packโs blog layout. This interactive map will contain all the continents and on click, the visitors will be redirected to the category page of that specific continent.
- 1 Preview
- 2 Part 1: Download & Install the Free HTML 5 Maps Plugin
- 3 Part 2: Create Post Categories & Assign Travel Posts to Categories
- 4 Part 2: Create World Map
-
5
Part 3: Add World Map to Blog Page
- 5.1 Step 1: Go to Blog Page & Enable the Visual Builder
- 5.2 Step 2: Add New Section Below Hero Section
- 5.3 Step 3: Remove Bottom Padding of Section
- 5.4 Step 4: Hide Section on Tablet & Phone
- 5.5 Step 5: Add One-Column Row
- 5.6 Step 6: Add Text Module with Shortcode
- 5.7 Step 7: Save Page & Exit Visual Builder
- 6 Preview
- 7 Final Thoughts
Preview
Before we dive into this use case tutorial, letโs take a quick look at the design that you can expect once you finish all the steps.

Part 1: Download & Install the Free HTML 5 Maps Plugin
Step 1: Download the Plugin
Letโs start by downloading the free version of the HTML5 Maps plugin. This is just one of many interactive maps plugins on the market. Download HTML5 Maps by going to the following page and clicking on the download button.

Step 2: Upload it to Your WordPress Website & Activate it
Once youโve downloaded it, go ahead and upload it to your plugins. Make sure you activate the plugin as well.

Part 2: Create Post Categories & Assign Travel Posts to Categories
Step 1: Go to Post Categories
In the next part of this post, weโll create a world map with all continents. By clicking on one of these continents, visitors will be redirected to the category page of the continent theyโve clicked on. There, they will be able to see all the blog posts youโve created that are relevant to that continent. But first, weโll need to create the categories and their pages at the same time. To do that, start by going to your Posts > Categories.

Step 2: Create a Category for Each Continent
Now, create a category for each one of the relevant continents as you can see in the print screen below.

Step 3: Assign Posts to Relevant Categories
Youโll need to assign each one of your existing and future posts to one of the continents. This will, of course, depend on the content of your blog post. A blog post can be assigned to multiple continents as well if the content of your blog post allows it.

Part 2: Create World Map
Step 1: Go to HTML Maps
Now, weโll move on to the fun part! Weโll create an interactive map by going to our HTML5 Maps plugin > Maps.

Step 2: Add a New Map
There both free maps and premium maps available. The world map containing continents is free so thatโs the one weโll go with. The world map showing countries is part of the premium plugin. Give your map a name, select the right map and click on โAdd a new map.โ

Step 3: Go to Map Settings
Weโve, now, created the map. Weโll need to make some modifications to it to make it match with our layout pack. Go to the Map Settings of the map youโve created.

Step 4: Modify General Settings
Although you can choose to make the map responsive, weโre going to use this map on desktop only. Navigating on mobile differs from navigating on desktop and I personally donโt think adding a map to the mobile version is the best way to go. The map would be scaled down because of the screen size which would make clicking on a continent pretty difficult. In the general settings, apply the following changes:
- Borders Color:ย #ff6b5b
- Responsive: Disabled
- Map Width: 1200
- Map Height: 600

Step 5: Modify Detailed Settings for Each Continent
In the Detailed Settings tab, you modify each one of the continents individually. This is where youโll need to add the URL you want users to be redirected to. The URL for each continent will need to match the slug of your category and will look like this:
- yourwebsite.com/category/continent
Open each one of the continents individually and apply the following settings to them:
- What to do when the area is clicked: Open a URL
- Url:ย yourwebsite.com/category/continent (change to the relevant continent)
- Area Color:ย #FF6B5B
- Area Hover Color:ย #d64c3d


Step 6: Copy Shortcode
Save all the changes you made and copy the shortcode of the map youโve created:

Part 3: Add World Map to Blog Page
Step 1: Go to Blog Page & Enable the Visual Builder
In the last part of this use case blog post, weโll add the map to our blog page. You could place the map on other pages as well but since itโll open category pages, it makes the most sense to place it on the blog page. Start by going to your blog page and enabling the Visual Builder.

Step 2: Add New Section Below Hero Section
Then, add a new section right below your hero section.

Step 3: Remove Bottom Padding of Section
To reduce some of the space between this section and the next one, weโll remove all of the default bottom padding of this section by adding โ0px.โ

Step 4: Hide Section on Tablet & Phone
As mentioned before, weโll only make this map appear on desktop for UX reasons. Go to the Visibility settings of your section and disable the entire section on phone and tablet.

Step 5: Add One-Column Row
Once youโre done with your section settings, go ahead and add a row with one column.

Step 6: Add Text Module with Shortcode
The only module weโll need to add is a Text Module containing the shortcode weโve generated in the previous part of this post.

Step 7: Save Page & Exit Visual Builder
Thatโs it! The only things left to do are saving your page and exiting the Visual Builder. Your interactive map is ready to be used!

Preview
Now that weโve gone through all the steps, letโs take a final look at the result weโve achieved.

Final Thoughts
In this use case blog post, we have shown you how to add an interactive map to Diviโsย Travel Blog Layout Pack. For this, weโve used a world map with all the continents. By clicking on one of the continents, the visitors will be redirected to the category page of that particular continent. If you have any questions, make sure you leave a comment in the comment section below!

Where is a working example?
Nice Tutorial. Could come in handy later on.
Thanks
Nice!! Thank you!
How cool, thanks for sharing this plugin Donjete. I think I will have a play around with it.
Looks great! Is there a way to see the live version?
https://www.elegantthemes.com/layouts/outdoors-travel/travel-blog-landing-page/live-demo
๐
… oh, it seems the map is missing in the demo.