Create a Directory Website with the OceanWP Theme

create directory website oceanwp geodirectory

How to Create a Directory Website with OceanWP?

Here’s a step-by-step guide to building a Directory Website using the OceanWP theme:

  1. Install the OceanWP theme
  2. Install and setup GeoDirectory
  3. Install the Spectra Gutenberg Blocks Plugin
  4. Design the Directory Website using the OceanWP theme and the Gutenberg Editor

OceanWP Theme in combination with the GeoDirectory Plugin and a Gutenberg Blocks Plugin, offers a robust and flexible solution for crafting a dynamic online directory.

This trio allows users to seamlessly integrate location-based features, customize layout designs, and incorporate interactive content blocks, ensuring an intuitive and engaging user experience.

With this integrated approach, web developers and designers can easily achieve a professional-grade directory site tailored to specific niche markets or broader community needs.

Let’s see how we can do that in detail.

In this tutorial, we will:

Installing Theme and Plugins.

1. Install the OceanWP Theme

We need to install a Theme, and for this tutorial, you will install the OceanWP Theme.

Go to Appearance >> Themes

Select Add New, Install, and Activate the OceanWP Theme.

screenshot-2023-09-23-at-1-12-42-pm-1-1024x807-2380980
Install OceanWP theme

2. Install Spectra Blocks plugin

The default Gutenberg plugin is not enough to style a template so we will install the Spectra Blocks plugin. (check out this tutorial if you want to create a directory website with the Astra Theme and the Spectra Plugin instead)

This plugin provides customized Gutenberg blocks which are better than the default blocks and will help you design the page templates.

Go to Plugins >> Add new.

Search for Spectra Blocks. Install it and Activate it.

screenshot-2023-09-16-at-8-37-51-pm-1024x873-9089294
Install Spectra Blocks Plugin

You can Skip all steps of the Setup Wizard.

3. Install GeoDirectory

Finally, you need to install GeoDirectory.

Go to Plugins >> Add new, search GeoDirectory. Please install and activate it, and we finished installing the plugins.

install-geodirectory-720x386-1012537
Install GeoDirectory plugin

4. GeoDirectory Install Wizard

For GeoDirectory, you will need to complete the Setup Wizard to configure the Google Maps API key and import a few dummy listings.

Choosing the Map System (Google Maps or OpenStreetMap)

gd-wizard-map-api-key-720x338-8258688
GeoDirectory Setup Wizard

You can choose between two mapping systems on the wizard’s first step. Google Maps and Open Street Maps (which doesn’t require an API key).

In this tutorial, we select OpenStreetMaps.

In case you wish to select Google Maps, do the following extra steps.

Click on the Generate Key button and follow the steps of this doc to generate a valid API key.

The essential steps are:

  1. Enable the Keys.
  2. Create or select an existing project.
  3. Get the Key.
  4. Activate a billing account.
  5. Restrict the API key (so it can only be used from the URL of your website)

About point four: it is a requirement. However, you only get charged if you pass the threshold, which is $200/month.

This free credit is more than enough for 99% of directories.

Setting the default city

Settings the Directory default city
Settings the Directory default city

After that, you will set the default location. This is the city for which the directory is created.

We will set New York as the default city.

You can use whatever location you need.

If you need to add listings to more than one city, you will need the Location Manager add-on.

Adding extra features

gd-wizard-extra-features-720x583-5463319

In this step, we will install our UsersWP, a user login plugin that lets users register and log into your website.

This is needed to allow users to add and edit their listings. It will also create user profiles where they can find their listings, reviews, and so on.

We will also install Ninja Forms so that all listings have a contact form that sends emails directly to the listing owners.

AyeCode Connect is not mandatory for this tutorial. It is mainly needed if you want to add GeoDirectory premium add-ons and install them directly from the WordPress Dashboard.

Adding Dummy Data

gd-wizard-dummy-data-720x256-9149338
GeoDirectory Dummy Listings

The last step to complete the installation wizard is adding some dummy listings. This will also add listing categories that you can edit later according to your needs.

You will not add sidebar widgets and menu items right now, as we will do that later.

Design the OceanWP Directory Website

Now that we installed the theme and the plugins and done the preliminary setup of GeoDirectory, we can start designing our Directory Website with the OceanWP Theme.

1. OceanWP Directory Website Home Page design

You can create a new page or use one WordPress creates by default, like the Sample Page.

Go to Pages, edit the Sample page, and rename it Home or create a new page for this.

Next, go to Appearance > Customize > Homepage Settings and select your Home.

screenshot-2023-09-23-at-2-59-07-pm-1024x621-9399430
Setting up the homepage.

First thing first, we will need a logo for our website.

You don’t need to invest in a designer to sketch the 1st version of your logo.

One of the biggest mistakes you can make when starting a new directory is investing too much time and money before testing the product market fit.

You can design a logo in five minutes with an app like Canva, which is cheap and surprisingly good.

image-4-1024x554-9950724
Create your 1st logo draft using Canva.com

For an initial MVP (minimum viable product), a logo crafted using Canva is adequate.

Canva offers a plethora of logo templates, and it’s okay if your first logo doesn’t epitomize perfection or originality.

As your project gains momentum, you always have the option to refine or completely revamp your logo.

Remember, a project’s success isn’t determined by the perfection of its logo.

Now go to Appearance > Customize > Header > Logo, click Select Logo, and upload your PNG file. Skip cropping (or crop the image as needed) and click publish, You can also set the logo max height and width if your logo is bigger in size.

oceanwp logo
OceanWP Directory Logo made with Canva.com.

The Navigation Menu

After creating and adding the logo, go to Appearance > Menus, and create your menu.

screenshot-2023-09-23-at-2-30-47-pm-1024x914-7196316
OceanWP Directory Navigation Menu

Add the links needed (from the left column to the right column) and save. In the Menu Settings > Display location section, you can check the “Main” option.

If you want, you can make the same menu appear on the footer or create another menu to appear there.

In this example, we’ll only have the header navigation menu.

We added seven main navigation links and a few sub-navigation links:

  1. Home
  2. About
  3. Blog
  4. Places and add places
  5. Search Page
  6. Login
  7. Account > Profile > Forgot Password > Logout
screenshot-2023-09-23-at-2-32-38-pm-1024x357-7207837
The navigation menu visible on the top-right corner of the site

The Login link (from UsersWP Endpoints) will only appear for Logged-out users, while the log-out, account and profile links will only appear for logged-in users.

The Typography

Now let’s define the Typography for the website text font and size. I am setting a global Font Family, Font Weight, and Font Size that will be applied to all site text.

we will go to the Appearance > Customiser > Typography > Body. we will set the Font Family: Red Hat Text and Font Weight: Normal: 400

image-5-1024x425-1470520

and in the Appearance > Customiser > Typography > main menu settings. we will set Font Weight: Medium 500, Font Size: 13px

image-6-1024x364-1475466
Typography sizes

Now we will go to the Appearance > Customiser > General Options > General Styling Primary Color: #ff914d and Hover Primary Color: #ff731c

image-7-1024x440-1835451
Typography colors

The Content

I will start building this page from scratch using the Spactra Blocks plugin.

we need a hero header on the homepage for that let’s add a container block provided by the spectra blocks plugin.

image-9-1024x408-5775035
Blank homepage with only one section made of one column

Next, click Style from the top tabs. Select > Type Images as the Background Type.

For the Hero Section, we need an image and we will download a free image from Pexels.com (Thanks, @Kelly).

image-8-1024x522-1282689
Hero Image

Click on the added section and select Full Width in the Content Width option as mentioned in the below screenshot.

image-9-1024x477-9451383
Hero image added to the section as a background.

From the style tab of the container block setting select Repeat to No Repeat and Size to Cover.

image-10-1024x511-8393379
Hero Image settings

Drag and Drop a Heading Element inside the Hero Image.

image-11-1024x460-5856177
Adding heading text to the hero image

It’s time to give a title to our Homepage Hero Image.

From the Style tab, change the text color to white (#FFFFFF) to improve the contrast and readability.

In this tutorial, I will use something simple like “Find the Best Restaurant in New York” You can add whatever slogan you want here.

image-14-1024x521-4391186
Hero Text Heading Title

Don’t forget to center the text using the alignment option.

image-13-1024x486-8353497
Hero Text Heading Title settings

In order to add GD search on the homepage header, Drag the GD > Search block inside the hero container.

image-15-1024x466-1974607
Center the heading text and add Gd search form

Next, add some minimum height to this hero container. I will set it to 650 x 600 px in width and height and also make the container width: Boxed and content width: Boxed.

image-17-1024x507-5127893
Add minimum height to the hero image heading text.

it’s time to remove this page title and extra space in the header section.

Click on the O icon on the right top of the page, just click on it. Inside that check General section set padding: disabled and inside Title selection Title: disabled

image-18-1024x487-4034703
Page default title and spacing

It’s time to add a few more required sections on the homepage, I will add a recent listings section now.

Below the hero section, add one more container by clicking on the plus icon and add the GD > Listings blocks there.

image-21-1024x575-7409547
Home Page GD Listings Block

Now we will do some needed settings in this GD > Listings block. we will set sorting: recent

screenshot-2023-09-24-at-1-43-32-pm-1024x495-9557991
Home Page GD Listings Block settings

Now we will add a CTA to attract business owners to add their businesses. we will add an empty container and in the style setting.
let’s set a background.

screenshot-2023-09-24-at-2-15-50-pm-1024x571-9504972
Home Page Call To Action

Now Let’s add the container styles:

Overlay Type: Color
Image Overlay Color: #FF6900
Overlay Opacity: 0.3
Container Width: Full Width
Content Width: Boxed

image-25-1024x517-7601031
Home Page Call To Action style


Now we will also add a Call To Action block provided by spectra inside this container.

Typography for the CTA section.
Color: #fffff
Font Size: 32px

image-28-1024x527-6559164
Home Page Call To Action typography

let’s add some style to the button.
Text Color: #000000
Background Color: #FFFFFF
Radius: 30px all sides
Padding: 10px, 30px, 10px, 30px

image-29-1024x522-5402897
Home Page Call To Action button style

Let’s change the button text to Add Listing and the link to the Add Listing page link.

screenshot-2023-09-24-at-2-42-46-pm-1024x591-6817688
Home Page Call To Action button link

So now our CTA section is completed. we will add one more section the GD > Categories section below it.

Settings will be the following
Design type: Image Background
Row Items: 3
Enable Use Category Image

image-30-1024x522-7216209
Home Page Listings Categories

You can set the image to a category by editing the category from wp-admin -> places -> Place Categories.

Each category has an option to set a default image

screenshot-2023-09-17-at-3-18-06-pm-1024x926-3921928
Categories Default Image

There you go now let’s add the last section for social media link display. we will call it STAY IN TOUCH.

Add a new empty container with background #000000.

image-31-1024x512-7293711
Stay In Touch Section

Now we will add a heading in this container with Alignment: Center and Heading: H3

image-33-1024x512-9923311
Stay In Touch Section Typography

I will add the text “Stay in Touch”
Color: #ffffff
Font Size: 24px

image-34-1024x525-5810129
Stay In Touch Section Style

Let’s now add a paragraph below it to add some text.

image-35-1024x502-9091035
Stay In Touch Section Text

Add some style
Text Color: #ffffff
Size: Small

image-36-1024x516-4301632
Stay In Touch Section Text Style

Now we will add the social icon block below it.

image-37-1024x523-9292839
Stay In Touch Section Icons

In this social icon block add the following style
Size: 15px
Background size: 10px
Border Radius: 100
Color: #ffffff

image-38-1024x518-2074852
Stay In Touch Section Icons Style

Congratulations! Your homepage is Completed.

screenshot-of-restaurants-ocean-570x1024-4025630
Home Page Completed

2. OceanWP Directory Website Listings and Search page design

Now you need to design two pages that are essential for any directory.

The listings page (general archive, categories, tags), and the search results page.

GeoDirectory creates them by default with a general layout. In this tutorial, we will customize the layout of these pages a bit.

The listing and search pages are mostly identical so we create it once and just copy the layout on the other page.

We decided the Listing page layout would be the listings on the left, and on the right, a sticky map showing the listings’ precise location.

screenshot-2023-09-18-at-9-13-41-am-1024x520-6943481
Listings and Search page inspired by Airbnb search page layout

This is very easy.

Listings page

Go to Geodirectory > Settings > General > Pages > Click on edit GD Archive page template

screenshot-2023-09-18-at-9-15-09-am-1024x419-4029443
Edit the listings page

Remove all the content from this GD Archive page template.

Now add a container with two columns.

screenshot-2023-09-18-at-9-19-56-am-1024x541-5336623
add a container with two columns

Now on the left container, we will drag GD Archive page-related widgets like GD > Loop Action, GD > Loop, GD > Loop Pagination, and GD > Search on top so the user can search from the Archive page.

On the right column, we will drag the GD > Map block.

screenshot-2023-09-18-at-9-26-42-am-1024x509-3121548
Add GD>Map Block

we will keep all the settings default for the GD > Map. let’s give it some height and I have decided to give it the height of 100vh.

screenshot-2023-09-18-at-9-29-47-am-1024x589-7537124
GD>Map Block Styles

Now just set the main container to full width by following below instructions given in the image below.

screenshot-2023-09-24-at-3-44-47-pm-1024x539-4557334
Listings Page Container Full Width

Now we will set the Archive page template to Full width

screenshot-2023-09-24-at-4-01-15-pm-1024x508-6328823
Listings Page Full Width

we will also adjust the header style section for all pages from the Theme Customizer > General Options > General Settings.
with Style
Heading Style: Centered
Padding: 20px
Background Color: #1e73be
Text Color: #ffffff

screenshot-2023-09-24-at-3-54-45-pm-1024x782-5932839
Listings Page Header Style

Now after this, the Listing Archive page is ready.

Listing Archive page is ready.
Listing Archive page is ready.

Another option is to use the GD > Simple Archive block as explained in this tutorial on how to Build a Directory Website with Elementor.

For the search page, we repeat the same process.

Search page

Go to Geodirectory > Settings > General > Pages > Click on edit GD Search page template

Remove all the content from this GD Search page template.

Copy all the content of the GD Archive page and paste it into the GD Search page.

So now our GD Search and Archive page is ready.

3. OceanWP Directory Website single Listing page design

Now to edit and customize the GD Detail page, You can go to Geodirectory > Settings > General > Pages > Click on edit GD Detail page template.

screenshot-2023-09-18-at-10-14-59-am-1024x418-9121880
Edit GD Detail Page Template

In this template, you will already find default content generated by Geodirectory.

we will remove all these default content and add a new container.

image-39-1024x343-7087405
Edit GD Detail Page Template Content

Let’s first add an image slider at the top of the Listing Detail page. we will drag the GD > Post Image block in this container.

image-41-1024x459-6379700
Edit GD Detail Page Template Post Image Block

In this GD > Image block adjust the following settings.

Image Limit: 50

Show Limit: 2

screenshot-2023-09-24-at-8-31-27-pm-1024x497-8452463
Edit GD Detail Page Template Post Image Block Settings

Now let’s add one more container below this container. where we will add other required blocks of the Geodirectory Detail page.

screenshot-2023-09-18-at-10-33-55-am-1024x710-9461434
Edit GD Detail Page Template Listing Content

Now let’s add all required GD Detail page shortcodes here one by one. Which includes GD > Single TaxonomiesGD > Single Tabs, GD > Single Next Prev.

Now it’s time to add some sidebar widgets. so we will go to wp-admin > Appearance > Widgets.

Add GD > Author Action widget in the main sidebar. This widget will provide an EditDelete Listing option to the Listing Author.

screenshot-2023-09-24-at-8-38-16-pm-1024x783-4758244
Add GD > Author Action widget

Add one more widget GD > Output Location. This widget will show all major listing details that have been marked to be visible on the Detail page.

screenshot-2023-09-18-at-10-46-33-am-1024x499-1381645
GD > Output Location

After doing this our Listing Detail page has been completed.

Listing Detail page has been completed
Listing Detail page completed

Adding premium features to your OceanWP Directory Website

If you wish, now you can add premium features to your directory, such as:

  1. Paid Listings: with the GeoDirectory Listing Price Manager add-on, you can set prices for listing submission. For each price tier, you can enable/disable features such as: Restricting the number of pictures for free listings while allowing more pictures for paid listings. Allowing more or fewer tags and categories. Enabling or disabling specific custom fields. Submitting longer or shorter descriptions.
  2. Claim Listings: This is a fundamental feature for a directory where the admin creates the database and invites business owners to take control of their free listings. The claim listing process may include forcing an upgrade to a paid listing to take over the listing’s ownership.
  3. Advertisingselling ads is another form of monetizing an online directory. If you have a lot of traffic, you can use Ads networks. Otherwise, you may sell ads directly, allowing businesses to add banners in specific areas of your website or allowing for listings to appear as ads, for example, on top of organic search results.

These are just three examples. However, a directory website offers many ways to make money online.

You can create a global marketplace of handcrafted items, sell event tickets, or sell discount coupons.

Make your directory website stand out by following this guide: Create a professional directory website.

The possibilities are limitless.

Unlock the Power of GeoDirectory!

Start your Online Business Now

Join Today!

Newsletter - Stay Updated!

Get the latest news, tips, and exclusive content directly in your inbox.

Published by Paolo

Paolo Tajani, co-founder and marketing lead at AyeCode LTD, works alongside his business partner Stiofan to develop key WordPress plugins such as GeoDirectory, UsersWP, and GetPaid. Starting his journey with WordPress in 2008, Paolo joined forces with Stiofan O'Connor in 2011. Together, they have been instrumental in creating and marketing a range of successful themes and plugins, now actively used by over 100,000 websites.

Loading...