How to create a custom Sticky Bar template
Who is this article for?
Anyone who owns the Divi Den Pro and wants to know how to create a custom Sticky Bar template.
See how to create other templates here: Create your own custom Divi Theme templates
• Skill level: Easy
• Time to complete: 5+ minutes
Creating the template
1. Go to Divi > Divi Library and click "Add New":
- Add any Layout name you want.
- For the Layout type choose Section.
- Add the section to these categories: PHP Templates and Sticky bar
2. Choose any section structure you would like, and add any content that you want to appear in this sticky bar.
Make sure to stylize this section so that it looks good on all screen devices.
Also, allow your visitors to close the sticky bar by pressing the close button. To do this, add a new Button module. For the button text, you can just write an "X".
Go to Button module Advanced settings and assign a class: close_icon
3. Go to Divi Den Pro > Theme Builder > WordPress Customizer.
Toggle Divi Den Pro, then toggle Sticky Bar.
From the drop-down menu, choose the sticky bar template you just created, and click the Publish button.