[Resolved] Display "Before Header Content" hook on mobile

Home Forums Support [Resolved] Display "Before Header Content" hook on mobile

Home Forums Support Display "Before Header Content" hook on mobile

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #431251
    themedleb

    Hello,

    I’m wondering how I can display “Before Header Content” hook on mobile.

    #431252
    themedleb

    By the way, I’m using Mobile Header option.

    #431626
    Leo
    Staff
    Customer Support

    Hi there,

    Unfortunately the mobile header strips the normal header element which includes before header content hook.

    #431720
    Tom
    Lead Developer
    Lead Developer
    #431900
    themedleb

    Thank you Leo and Tom,

    How can I use this hook? I just see names “generate_inside_mobile_header” and “#mobile-header”, where am I going to insert my HTML code?

    #431901
    themedleb

    Oh, okay I think I know how, I will put this thread as resolved when I’m done.

    Thank you.

    #431906
    themedleb

    I tried it, It worked, but shortcodes are not supported.

    #431982
    Leo
    Staff
    Customer Support

    Shortcodes are supported in hook.

    Can you show me the full code?

    #431987
    themedleb
    
    add_action( 'generate_inside_mobile_header','mobile_header_extra' );  
    function mobile_header_extra() { ?> 
    
    <div class="user-area-menu">
    [elementor-template id="5408"]
    </div>
    
    <div class="social-media-menu">
    [elementor-template id="5415"]
    </div>
      
    <?php }
    
    #432002
    Leo
    Staff
    Customer Support
    #432009
    themedleb

    Thank you, it worked.

    #432027
    Leo
    Staff
    Customer Support

    No problem!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.