How to Design a Welcome Gate for Your Page in Divi

Last Updated on December 21, 2022 by 26 Comments

Editorial Note: We may earn a commission when you visit links on our website.
How to Design a Welcome Gate for Your Page in Divi
Blog / Divi Resources / How to Design a Welcome Gate for Your Page in Divi

A welcome gate is an effective way to boost conversions of any call to action on your site. In fact, welcome gates are a popular feature with plugins like OptinMonster for creating high-converting email optins. The basic idea behind a welcome gate is to hide the content of the webpage with a fullscreen call to action. This forces the user to interact with the CTA before viewing the intended page.

In this tutorial, we are going to show you a quick and easy way to add a custom welcome gate to your web page without using a plugin. This may come in handy for boosting the conversions of your CTAs on landing pages.

Check it out!

Sneak Peek

Here is a quick look at the welcome gate we will build in this tutorial.

divi welcome gate

divi welcome gate

divi welcome gate

Download the Layout for FREE

To lay your hands on the designs from this tutorial, you will first need to download it using the button below. To gain access to the download you will need to subscribe to our newsletter by using the form below. As a new subscriber, you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be resubscribed or receive extra emails.

To import the layout to your page, simply extract the zip file and drag the json file into the Divi Builder.

LetΓ­s get to the tutorial shall we?

What You Need to Get Started

To get started, you will need to do the following:

  1. If you haven’t yet, install and activate the Divi Theme.
  2. Create a new page in WordPress and use the Divi Builder to edit the page on the front end (visual builder).
  3. Select the option β€œChoose a Premade Layout”.
    divi welcome gate
  4. Select the Bistro Layout Pack and, from the Load from Library popup, select the Bistro Landing Page Layout and click the β€œUse This Layout” Button to import the layout to the page.
    divi welcome gate

After that, you have a landing page to use when creating the custom welcome gate.

Creating the Welcome Gate

Add New Section

First , create a new regular section and drag it to the top of the page. Then add a one column row to the section.

divi welcome gate

Design the Section

Before we start adding any modules/content to the section, let’s add some custom design so that we have a nice canvas to work from going forward.

Background

To start, add a background gradient and image as follows:

  • Background Gradient Left Color: rgba(0,17,38,0.7)
  • Background Gradient Right Color: #001126
  • Start Position: 68%
  • Place Gradient Above Background Image: YES
  • Background Image: [insert image]

divi welcome gate

Padding and Animation

Next, jump over to the design tab and update the following padding and animation settings:

  • Padding (desktop): 28vh top, 28vh bottom
  • Padding (tablet): 18vh top, 18vh bottom
  • Padding (phone): 10vh top, 10vh bottom
  • Animation Style: Slide
  • Animation Direction: Down
  • Animation Starting Opacity: 100%;

divi welcome gate

Position the Welcome Gate Section

Now we are ready to give our section a fixed position with a higher z index so that the welcome gate will fill the browser screen until the user clicks the β€œNo thanks” button.

Before we add our positioning css, let’s add a custom CSS ID as follows:

  • CSS ID: welcome-gate

This will be used to target the section with jQuery to move it upward out of view when the user clicks the β€œNo Thanks” button.

Add the following custom CSS to the main element:

height: 100vh;
position:fixed;
width: 100%;
top: 0px;
display:flex;
flex-direction: column;

Then update the Z Index as follows:

  • Z Index: 11

NOTE: if you want the welcome gate to hide the header as well, you can add a higher Z Index like β€œ99999”.

divi welcome gate

Creating the Welcome Gate Content

Now that our section is ready, let’s start adding the welcome gate content. You can add any content you want to this welcome gate. For now, let’s create a simple CTA with two buttons. The button on the left will be the one you want users to click on. The button on the right will be the β€œNo Thanks” button that will close the Welcome Gate.

Text Module

Inside the one column row, add a new text module with the following content:

<h2>Free Dessert for First Timers</h2>
Book a reservation today and get your choice of any dessert on us!

divi welcome gate

Text Design

Then update the text design as follows:

  • Text Font: Cabin
  • Text Text Color: #ffffff
  • Text Text Size: 24px (desktop), 18px (phone)
  • Text Alignment: Center
  • Heading 2 Font: Cabin
  • Heading 2 Font Weight: Bold
  • Heading 2 Text Color: #ffffff
  • Heading 2 Text Size: 66px (desktop), 26px (tablet)

divi welcome gate

Add Two Column row

For our buttons, let’s create a two column row under the text.

divi welcome gate

Add Left Button

In the left column, add a button module and update the settings as follows:

  • Button Text: β€œYum! Let’s Book it”

divi welcome gate

  • Button Alignment: center
  • Button Text Color: #ffffff
  • Button Background Color: #bd8f52
  • Button Border Width: 0px
  • Button Font Weight: Bold

divi welcome gate

Then add the following custom CSS to make the button span the fullwidth of the column:

display: block !important;

divi welcome gate

Add Right β€œNo Thanks” Button

To create the β€œNo Thanks” button, first copy the left button and paste it in the right column.

Then update the content as follows:

  • Button Text: no thanks
  • Button Link URL: # (this is important so that the button doesn’t refresh the page)

divi welcome gate

Then update the button design as follows:

  • Button Text Color: #333333
  • Button Background Color: rgba(255,255,255,0.4)

divi welcome gate

Then add the following CSS Class to the no thanks button:

  • CSS Class: nothanks

divi welcome gate

This will be our selector in the jQuery that closes the welcome gate on click.

Add the Custom Code

Now let’s add the custom code snippet needed to add the functionality that closes the welcome gate when a user clicks the β€œNo Thanks” button. To do this, add a code module below the no thanks button module.

divi welcome gate

Then paste the following code into the code module code box:

divi welcome gate

For one last touch, let’s bring the buttons closer together by giving the row containing our buttons a max width. Open the row settings and update the following:

  • Max Width: 600px

divi welcome gate

Final Result

Here is what the final design looks like.

divi welcome gate

And here is what the welcome gate looks like when refreshing the page.

divi welcome gate

And here what the welcome gate looks like on mobile.

divi welcome gate

Final Thoughts

Hopefully this welcome mat will be a helpful addition to your page or template. Divi makes it easy to design and position the welcome mat using the visual builder and it only takes a small snippet of jQuery to complete the functionality. So if you are looking for a quick welcome mat for your page without using a plugin, this should come in handy.

I look forward to hearing from you in the comments.

Cheers!

Divi Cyber-monday Sale

It's The Divi Cyber Monday Sale! Save Big For A Limited Time πŸ‘‡

Save big on Divi and Divi products for a limited time.

Access The Sale
Divi Cyber-monday
Premade Layouts

Check Out These Related Posts

Divi 5 Update: Public Alpha Version 4

Divi 5 Update: Public Alpha Version 4

Posted on November 25, 2024 in Divi Resources

The Divi 5 Public Alpha is available for testing. If you use Divi 5, you’ll notice an update notification for Public Alpha Version 4 today. We release new Divi 5 versions every two weeks, and it gets better each time! If you haven’t tested Divi 5 yet, try it and let us know what you...

View Full Post
New Starter Site for Freelancers (Quick Install)

New Starter Site for Freelancers (Quick Install)

Posted on November 24, 2024 in Divi Resources

Divi empowers you to build the best websites possible, and now, Divi Quick Sites takes website creation to a whole new level. This revolutionary tool lets anyone, regardless of skill level, generate a complete website in under two minutes! Divi Quick Sites provides everything you need to launch...

View Full Post

26 Comments

  1. I have menu items that are bookmarks to sections on the home page. These don’t work when the welcome gate is active. Is there a way to overcome this?

  2. THANK-YOU!!! That was unbelievably USEFUL and thorough. I was grappling with a Leave/Enter dropdown on a website – I even paid for DiviOverlays – and it would not work (their intra-page pop-ups worked, but not the full-page). This WORKS ! I needed the Gateway to only open ONCE on the home-page of the website. The code you gave (Elisa) in these comments saved me there too – … (otherwise, each time a user went back to Home page the Gateway would drop again). Your extra code provided the work-around I needed. So happy. I was so despondent with DiviOverlays failing, and asking them to help me, and they just couldn’t provide guidance or even a video. This was SUPER. – Thank You !!

  3. Welcome gates are good at converting but should be used with care as they can annoy your website visitors.
    By using proper targeting options and couple of A/B testing you can find a right converting opt-in to suit your audience.

  4. a look very attractive unique design

  5. Best and easy to use, thank you

  6. Very decently created welcome gate.

  7. I really needed this, thanks!

  8. Fantastic, I am designing a sight now that this fits into nicely!

    • Awesome!

  9. Well that was something informative. One thing i need to mention is that, You need A better image optimization for all this because it alters the loading time of the webpage, the higher loading time the lesser the chances are for the conversion.

  10. Really good and very effective
    thank you

    • Glad to hear it!

  11. Very cool! I’ll be using this for sure.

    • Thanks!

  12. Interesting blog, Thanks for this tutorial it is informative.

  13. Looks great, is there a way to only get it to open once per visit ?

    • Thanks luis. See my comment to Elisa.

  14. It’s amazing system, You made everthing easy with this.

    • That’s exactly what we are hoping to do, Ceivan. Thanks for the support!

  15. How do we put this on every page but show it only once to a visitor?

    • If you want to show the welcome gate on all pages, you would need to add the welcome gate section to a template assigned to all pages using the Divi Theme Builder.

      If you want to limit the welcome gate to showing once per browser session, you can try replacing the jQuery between the script tags with the following:

        jQuery(document).ready(function($) {
          $("#welcome-gate").hide();
          if(localStorage.getItem('gateState') != 'shown'){
            $("#welcome-gate").show();
            $(".nothanks").click(function() {
              $('#welcome-gate').addClass('move-gate');
            });
            localStorage.setItem('gateState','shown')
          }
        });
      
      • Thanks for the code to limit per browser session. However, when I enable the visual builder, the gate is triggered. This will not allow me to make changes to the page. The solution that I have found is to use the wireframe view to make any changes. I do not mind the wireframe view because I enjoy coding. However, there are others who may not be experienced to implement code. Has anyone else experienced this?

        • Yeah, that would be a little frustrating. I mentioned that on the livestream. Easiest thing to do would be to put comment brackets around the custom CSS added to the section temporarily. Or you could just comment out the line “position:fixed” and use the brand new position option to toggle the fixed position on and off. Hope that helps.

  16. This is great. Thanks for the tutorial. Do you happen to have a live demo of how it acts, so we can try out the actions before going through all the work? Sorry if I missed the link somewhere.

    • Thanks, Ryan.
      Sorry no link. However if you have Divi you can download the layout from this post and add it to a new page on your site really easily.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

πŸ‘‹ It's The Divi
Cyber Monday Sale!
Get The Deal
Before It's Gone!
Join To Download Today