Home › Forums › Support › Display "Before Header Content" hook on mobile This topic has 11 replies, 3 voices, and was last updated 6 years ago by Leo. Viewing 12 posts - 1 through 12 (of 12 total) Author Posts November 22, 2017 at 10:58 pm #431251 themedleb Hello, I’m wondering how I can display “Before Header Content” hook on mobile. November 22, 2017 at 11:00 pm #431252 themedleb By the way, I’m using Mobile Header option. November 23, 2017 at 7:54 am #431626 LeoStaff Customer Support Hi there, Unfortunately the mobile header strips the normal header element which includes before header content hook. November 23, 2017 at 9:21 am #431720 TomLead Developer Lead Developer You can use this hook instead: https://docs.generatepress.com/article/generate_inside_mobile_header/ November 23, 2017 at 2:51 pm #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? November 23, 2017 at 2:54 pm #431901 themedleb Oh, okay I think I know how, I will put this thread as resolved when I’m done. Thank you. November 23, 2017 at 3:02 pm #431906 themedleb I tried it, It worked, but shortcodes are not supported. November 23, 2017 at 6:13 pm #431982 LeoStaff Customer Support Shortcodes are supported in hook. Can you show me the full code? November 23, 2017 at 6:22 pm #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 } November 23, 2017 at 7:11 pm #432002 LeoStaff Customer Support Try this method: https://generatepress.com/forums/topic/showing-icons-on-mobile-nav/#post-393311 November 23, 2017 at 7:25 pm #432009 themedleb Thank you, it worked. November 23, 2017 at 8:28 pm #432027 LeoStaff Customer Support No problem! Author Posts Viewing 12 posts - 1 through 12 (of 12 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In