1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, 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

How to add a custom element before the ul.et_mobile_menu?

Discussion in 'Free Divi Community Forum' started by Oscar, May 28, 2019.

  1. Oscar

    Oscar New Member

    Hi
    I want to add a custom search field right before the ul.et_mobile_menu. I had looked in the header.php, but i can't find the right place to insert the code...
     
    1. PRO MEMBER PERKS Divi Powerful Child Theme - Power up your Divi sites with tons of new functionalities & premade elements:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You will need to use Divi template hook et_header_top for this. This is an example taken from Divi functions.php:
    Code:
    Log In or Sign Up to view this code.