Site logo

Archived topic

Insert GP drop down vertical menu in Elementor.

5 replies · Started by Alberto on September 9, 2019

Viewing posts 1–6 of 6

Hi

I would be grateful if you could tell me how I can insert the Generatepress vertical drop-down menu (the one that appears on the sidebars) into a column designed with Elementor.

Thank you in advance.

Hi there,

Is it the primary or secondary navigation that you're trying to add?

We might be able to create a shortcode with the menu in it, and then put that menu in Elementor, but I'm not sure.

Hi Tom.

Is a secondary navigation

You could try this:

add_shortcode( 'secondary_navigation', function() {
    ob_start();

    if ( function_exists( 'generate_secondary_navigation_position' ) ) {
        generate_secondary_navigation_position();
    }

    return ob_get_clean();
} );

Then you can add the [secondary_navigation] shortcode to Elementor.

Not sure if it will actually work or not, but worth a shot.

Tom,

Where should I put this code?

Thank you!

This archived topic is closed to new replies.