-
Author
-
January 19, 2019 at 09:58 #216870alexliiParticipant
Hello,
We have a custom menu for our site which can be used by [menu shortcode], and we want the custom menu over the theme menu, since we need use the theme primary menu at the same time.
So, what is the right way to put that shortcode menu above the theme HEADER or both theme primary menu and top menu please?
Thanks and have a nice day.
January 19, 2019 at 12:22 #216885Kieran_SQModeratorHi,
You can use the below snippet to render your content before all other content (menu and page content). We cannot assist via the forums with integrating your third party plugin content but this will definitely get you started.
COPY CODE// Add an extra menu via shortcode before all content function add_extra_menu_sqk() { echo do_shortcode('[MYSHORTCODEHERE]'); } add_action('kleo_after_body','add_extra_menu_sqk');
Replace [MYSHORTCODEHERE] with your shortcode and/or HTML. This snippet should be added to your KLEO Child themes functions.php file.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
January 30, 2019 at 06:57 #217573alexliiParticipantGreat thanks!
This is really a great and flexible way to add custom header without touch child theme.
Alex
January 30, 2019 at 12:31 #217610Kieran_SQModeratorHi,
Glad I could help. If you have any other questions or experience any issues please feel free to open a new ticket and we’ll be happy to assist.
All the best,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.