How to create a full -screen menu in divi

One of the development trends of the website design is to apply a full -screen menu on the website. Because of its multifunctional and enhancement, not the ability to destroy user experience, in most cases, the full -screen menu is very suitable for almost any project. Having a website that really attracts users’ attention can prove that it is an obvious advantage in the field of marketing and advertising. By allowing the audience to experience business advertisements in person, the two are more interactive.

In DIVI, due to the function of the DIVI theme builder, you can create a custom title template and use the menu module to add the menu or custom menu you decide, and then customize it according to your preferences, so you therefore, so There are many options that can customize your site menu. In this tutorial, we will show you how to use the DIVI theme generator to create a simple lightweight full -screen menu in DIVI.

Step 1: Add and build a global title [123 ]

First, let us create a global title to make the menu available on your website, from WordPress instrument board to

DIVI

Theme Builder

. Click to add a global title Create Global Title .

Step 2: Edit the first settings and add a CSS class

You will be taken to the Divi Builder editor, edit There will be a part in the device. Open

Section Settings

panel, and on

Background

block, change the background color to completely transparent One \u003d

RGBA (255,255,255,0) .

Next, delete the default top and bottom filling of the part of this part, and turn to the

tab → Sitrus

, then set the top and bottom

to

0px . Continue to allocate a CSS class for this part to turn this part into a full -screen menu for CSS code and turn to

Advanced

tab →

CSS ID and class , and then type in

CSS

: \”Section-Transform\”.

and then turn to

Visibility

, set

Horizo \u200b\u200bNTAL and Vertical Overflow to

123] Hidden

, continue

position block, set z index to 99999 . This setting will ensure that this part is always located on all pages and post content. top. In addition, the hovering option is enabled and ensured that the same Z index value is also applied here.

] Step 3: Add the first line to this part Let us continue to add a line to this part, it will become the first line of this part. Then, without adding any modules, open row settings , turn to Design

tab and open

SIZING

block, and make the entire width of the screen occupying the screen of the screen Essence This is the needSettings:

Use a customized binding line width

:

is

Tiaolou width: 1 [ 123] Width: 100%

    Maximum width: 100%

  • Continue to delete the default top and bottom filling in blocks in spacing , and set the top and bottom of to
  • 0px

  • .

Step 4: Add text module to the menu button

We only need the text of this line Module, the content of this text module will be your menu button later, you can add the menu symbol you choose. In this article, we use the burger symbol \”

.

Continue to Design

tab →

text,

Here we will change text settings as follows :

Text font:

Arial

Text color:

#0000000

Text size: 3VW (desktop), 5VW (tablet), 7VW (mobile phone)

Text height:

1EM

Continue adding white

    text shadow

  • The dark part of the website is clearer.
  • Then modify the spacing value in

  • spacing , so that the menu button floats a little bit in the upper left corner. 123]
  • top filling : 2VW (desktop), 3.5VW (tablet), 5VW (mobile phone)

Fill

: 2VW (Desktop machine), 3.5VW (tablet), 5VW (mobile phone)

Left fill

: 3VW (desktop), 4VW (tablet), 7VW (mobile phone)

Right filling

: 3VW (desktop), 4VW (tablet), 7VW (mobile phone)

]

  • Step 5: Add the CSS ID to the menu button to trigger the full screen menu Click the burger to click on the burger The full -screen menu is triggered when the icon is triggered. We need to allocate a CSS ID for the text module. We will call this CSS ID in the latter code. Turn to
  • Advanced

  • tab → CSS ID \u0026 amp; classced and enter in
  • CSS ID

  • : \”Menu-Open\”.
] Step 6: Add the second row to place the menu

Let us continue to add the second row to place our menu in this part, and then change its

size

and

spacing

spacing

. 123] Set. First open

line settings Design tab → size block, set to width

: 100%,

maximum width ]: 100%.

enter spacing

block, modify its value as follow ]

最高边距

:2vw(台式机)、4vw(平板电脑)、6vw(手机)

底边距

:2vw(桌面)、4vw( Tablet), 6vw (mobile phone) Left fill : 19vw right filling : 19vw [ 123]

Step 7: Add the menu item

Let us add the project to our menu, and first add it to the column A text module. Then enter the name of the first menu, if necessary, you can give it a link. Our first menu is the \”homepage\” menu, the link is our homepage \”https://www.wppagebuilders.com/”。

  • [123 ] Continue to turn to the design
  • tab to define the text style. Our settings are as follows:

  • Text font
  • : Arial

  • [ [
  • [

123] Text font thickness:

Semi -thick body

Text color

:#000000

Text size

: 3VW (desktop), 7vw (平板电脑)、8vw(手机)

文字字母间距

:-0.1vw 文本行高:1em [123 ]

  • 123] Specifies Set. Settings are as follows:
  • The highest margin : 1vw
  • Fill in the bottom : 2vw
  • [ 123]

  • Left fill : 3vw
  • Let us add a bottom border, it will become the one of each menu for each menu The separation line. Turn to the border block, on the
  • border style

, and then select the bottom border. More settings are as follows:

The bottom of the bottom Border width:

1px

The bottom border color:

#333333

Row We can complete the text module settings by adding a custom CSS class. And we need to add this CSS class to each menu item you use. Classes

并在CSS Class中键入:“menu-item-click”。

  • [ 123]
  • Continue to copy the text module to the required menu. However, make sure the menu does not exceed the height of the screen. This time we will use 4 menus, so we will clone it 3 times. To achieve it, click the menu text module, and then click the repeated icon

3 times.

Then continue to change the name of each duplicate menu item and the required link.

  • Step 8: Add code to the full -screen menu
  • It is time to add some code to the full -screen menu to the full -screen menu The following code will be converted to a full screen when clicking the menu icon. \u0026 lt; script \u0026 gt; jQuery 39;). ToggleClass (\u0026#39; Section-TRANSFORM-Active \u0026#39;);}); $ (\u0026#39; .menu-design \u0026#39;). 39; .section-transform \u0026#39;). RemoveClass (\u0026#39; Section-TRANSFORM-Active \u0026#39;);}); \u0026 lt;/script \u0026 gt; \u0026 lt; .section-trmsfall {{{{{\u0026; : Pointer;} .section-transform-active {height: 100%! Important; width: 100%! Important; z-index: 99999! Important; Background color: #ffffff! Important;} .section-transform {-webkit-transitation: all 0.5S Ease! Important; -moz-Transitude: all 0.5s ele! Important; -O-TRANSITION: All 0.5s Ease! Important; It’s easy to 0.5 seconds! Important; transition: all 0.5S Ease! Important;} \u0026 lt;/style \u0026 gt;

To add code, first of all, we will create a new line and add

code module

. We will limit the space occupied by deleting all the default tops and bottom filling.

Continue Code module and paste the above code into it.

Step 9: The final size of this part

Add all modules to this part After its content, the final size can be adjusted. Open

Section settings

Design

Size and apply the following size to the section:

Width

: 8VW (desktop), 11VW (tablet), 18vw (mobile phone)

Height

: 7VW (desktop), 11VW (tablet), 18vw (mobile phone)

[ 123]

Continue to

 Advanced 

tab →

Custom CSS → Main element

] And add the following CSS fragments:

Location: Fixed; Top: 0; ensure that the same CSS fragment is also suitable for hovering. Step 10: Save the project and watch in real time

Our simple full -screen menu is ready. Click the saving button to save the menu, turn off the editor and click the saving change on the Theme Builder page. Try to open one of your pages or posts, and then try to click the newly created menu. The following is the display of our menu on one of our pages.

]

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *