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 create stunning event custom post type templates with Divi using the free Meetup Layout Pack. This use case tutorial is made possible by the Divi Builder Custom Post Type Support feature, one of Divi’s recent updates. We’re going to create a template that will match the Meetup Layout Pack. After creating this template, you’ll be able to reuse it for all the events you share on your website.

Let’s get to it!

Preview

Before we dive into the tutorial, let’s take a look at the final result on different screen sizes.

event custom post type

Install The Events Calendar Plugin

Go to Plugins & Add a New One

To add event custom post types to our website, we’ll be using The Events Calendar plugin. This is a free plugin which you can find by going to your WordPress dashboard > Plugins > Add New > Searching for The Events Calendar plugin.

event custom post type

Activate Plugin

Once you’ve installed the plugin, make sure you activate it right away so you can start using it.

event custom post type

Change Theme Customizer Settings

Change Typography

Now before we create an event, let’s start by getting the fundamentals of our website right. Open your Theme Customizer by going to your WordPress dashboard > Appearance > Customize. Navigate to the typography of your website by going to General Settings > Typography next. Once you’re there, apply the following settings:

  • Body Text Size: 16
  • Body Line Height: 1,9
  • Header Font: Roboto

event custom post type

The Events Calendar Settings

The Events Calendar plugin has some of its own settings in the Theme Customizer as well. Go back to the main menu of your Theme Customizer > The Events Calendar > General Theme > And use the following colors:

  • Accent Color: #06c8ff
  • Featured Highlight Color: #06c8ff

event custom post type

Go back to the settings of The Events Calendar > General Theme and use the same ‘#06c8ff’ color for all the options you can find there.

event custom post type

Add a New Event

Add New Event

We’re now ready to create a new event. To do that, go to your WordPress dashboard > Events > Add New. Once you’ve added a new event, make sure you give it a title as well.

event custom post type

Add Event Details

Continue by entering your event details. This includes:

  • Time & Date
  • Location
  • Organizers
  • Event Website
  • Event Cost

event custom post type

event custom post type

Add Featured Image

Add a featured image to your event as well. Later on this post, we’ll remove this from the frontend but we’ll still need it for social sharing.

event custom post type

Change Divi Page Settings

In the right corner of your event, you’ll see the Divi Page Settings. There, remove the sidebar by selecting ‘No Sidebar’ for the Page Layout.

event custom post type

Publish Event

We’re now ready to start working on the frontend. Go ahead and publish your event.

event custom post type

This is default page design without having enabled the Visual Builder:

event custom post type

Open Meetup Landing Page & Save Design Elements

Locate & Save Row to Divi Library

Working efficiently is more important than working hard. That’s why we’re going to save ourselves some time and effort by reusing elements of the Meetup Layout Pack. Start by opening the landing page using Divi’s Visual Builder. Then, locate the following row on your page and save it to your Divi Library:

event custom post type

Locate & Save Section to Divi Library

We’ll also need the following section so go ahead and save this one as well:

event custom post type

Start Creating Event Custom Type Template

Add Custom CSS Code Lines to Match Meetup Layout Pack

We can use the Visual Builder for event pages but unfortunately, we cannot use it everywhere. To make sure everything is in line with the Meetup Layout Pack, we’re going to add a few CSS code lines in advance:

#tribe-events {
margin: 5%;
}
.tribe-events-single-event-title {
font-weight: 300;
font-size: 60px !important;
}
#tribe-events-content a {
font-family: Roboto !important;
font-weight: 300 !important;
}
.tribe-events-event-image{
display: none;
}

event custom post type

Switch over to Visual Builder

We can now switch over to using the Visual Builder on our event!

event custom post type

Add a New Section

Background Image

You’ll see that there’s a section already present on the page. That’s the place on the page we’re able to modify. Start by opening the section settings and add the ‘bg-4.png‘ background image. You can find this image in your Media Library if you’ve already uploaded the Meetup Layout Pack to your website. Along with the background image, use the following settings:

  • Background Image Size: Actual Size
  • Background Image Position: Bottom Right

event custom post type

event custom post type

Spacing

Open the Spacing settings of your section next and add ‘100px’ to the top margin.

event custom post type

Border

We’re also creating this kind of timeline effect for our template. Go to your Border settings and add the following left border:

  • Left Border Width: 7px
  • Left Border Color: #8301e9

event custom post type

Add a New Row

Column Structure

Now that we’re done modifying the section settings, we can start adding our rows. Add a new row with the following column structure:

event custom post type

Sizing

Open the settings of your row and enable the ‘Make This Row Fulliwdth’ option in the Sizing settings. This is something we’re going to do for each one of the rows within this layout.

event custom post type

Add Text Module to Row

Sizing

Next, add a Text Module with a description of your event, move on to the Sizing settings and use the following Width:

  • Desktop: 47%
  • Tablet & Phone: 100%

event custom post type

Import Saved Row

Right below the row you’ve added, go ahead and import the row you’ve saved to your Divi Library.

event custom post type

Sizing

We’ll need to modify some things about this row, starting with the Sizing settings. Enable the ‘Make This Row Fullwidth’ option.

event custom post type

Remove Body Text Module & Button Module

Next, remove the paragraph of the Text Module and the Button Module in the first column.

event custom post type

Clone Text Module & Remove Sizing

Go ahead and clone the Text Module in your first row and place it in the first column of your new row. Open the Sizing settings next and remove the customized Width for desktop.

event custom post type

Import Saved Section

We’re done modifying the first section! Go ahead and import the section you’ve saved next.

event custom post type

Add Border

We’re adding a left border to this section as well:

  • Left Border Width: 7px
  • Left Border Color: #06c8ff

event custom post type

Change Sizing of Each Row

There are a couple of rows within the section you’ve just imported. Enable the ‘Make This Row Fullwidth’ option for each one of these rows.

event custom post type

Change Button Alignment

Lastly, change the Button Alignment to left as well.

event custom post type

Save Template to Divi Library

Add to Library

The layout template is finished! You can now save it to your Divi Library and reuse it for other events as well.

event custom post type

Preview

Now that we’ve gone through all different steps, let’s take a final look at the result on different screen sizes.

event custom post type

Final Thoughts

In this use case blog post, we’ve shown you how to create stunning event custom post type templates. The template we’ve created matches the style of the Meetup Layout Pack. After creating this template, we’ve also saved it to the Divi Library so we can reuse it for other events as well. If you have any questions or suggestions, make sure you leave a comment in the comment section below!

The post Creating Stunning Event Custom Post Type Templates with Divi appeared first on Elegant Themes Blog.