1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Divi Header Style #12 with hamburger menu

Discussion in 'Basic Support Forum' started by Mike86, Nov 27, 2020.

  1. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Kindly check your PM.
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add custom vertical navigation for your Divi site. Turns into slide in menu on mobile:Learn More
  2. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Which frontend icon are you referring to?
     
  3. Mike86

    Mike86 Member
    Divi Ultimate Header Plugin

    I am referring to the Cart icon and search bar. (Please see the attached image)

    cart icon and search bar.png


    The cart icon is only visible when there is at least one product in the cart.

    Now I can see cart icon and search bar in the frontend but they are not in the same level and in mobile view the search bar goes on top of the logo.
     
    1. PRO MEMBER PERKS Beautifully crafted custom colored 'Industrial' Divi layout for all Pro members:View Demo
  4. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    For that case, just go to the 'search shortcode' text module settings & set the margin top to be -10px.
    **It will then move the search bar upwards.
    For that case, you might want to go to the 'search shortcode' text module settings > Advanced > Visibility & set it to be hidden in phone view.

    Then you may add a new row with the search shortcode & set the row to only show on phone view. By doing so, you will get to move the search bar to the bottom of the logo & menu in mobile.
     
  5. Mike86

    Mike86 Member
    Divi Ultimate Header Plugin

    Thanks for the help! I almost got it.

    Only in mobile view the search bar is not aligned to the center:

    mobile header.jpeg

    Do you know how I could center align the search bar in mobile?
     
    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  6. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Try to go to the Text module settings > Advanced > Custom CSS > Main Element & add:
    Code:
    Log In or Sign Up to view this code.
    Then, remove the margin left & right value for the text module settings.
     
  7. Mike86

    Mike86 Member
    Divi Ultimate Header Plugin

    Hello,

    I would like to move the search bar from the header to below the header. It did it from visual editor by adding a new row below the header:

    search bar below the header, visual editor view.jpg

    But in the actual frontend the header looks strange:

    frontend when adding the search bar below the header.jpg

    Do you know how I could fix this and add the search bar below the header?
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade floating button design for your Divi site without using any plugins:View Demo
  8. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    You just need to clear your Divi static CSS file cache: WP Admin > Divi > Theme Options > Builder > Advanced > Static CSS File Generation > Clear

    I already did that for you.
     
  9. Mike86

    Mike86 Member
    Divi Ultimate Header Plugin

    Thanks!

    Is it possible to have the search bar to be part of the fixed header?

    So that the search bar would always be visible when scrolling down the page.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade content toggle design for your Divi site without using any plugins:View Demo
  10. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Then you just need to go to the Section Settings > Advanced > CSS Class & add free-sticky
     
  11. Mike86

    Mike86 Member
    Divi Ultimate Header Plugin

    Thanks!

    I also added free-sticky-no-shadow CSS Class because the search bar had shadow. So the CSS class for the search bar module is now: free-sticky free-sticky-no-shadow

    I noticed that now the search bar doesn't show up on mobile when using the sticky CSS class. Is there a way for the search bar to be sticky but still show up on mobile also?
     
    1. PRO MEMBER PERKS Divi Mini Cart Pro Plugin - Instantly add 3 different types of mini cart to your Divi site:Learn More
  12. Divi.Help Pro Support

    Divi.Help Pro Support Administrator
    Staff Member

    Try to add the this CSS Class as well: free-sticky-mobile-show
     
    Mike86 likes this.