This topic has 3 replies, 2 voices, and was last updated 5 years by Kieran_SQ.

  • Author
  • #216870
     alexlii
    Participant

    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.

    #216885
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #217573
     alexlii
    Participant

    Great thanks!

    This is really a great and flexible way to add custom header without touch child theme.

    Alex

    #217610
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?