• Resolved Anonymous User 7501994

    (@anonymized-7501994)


    Hi,

    The plug-in generates the code after the website is rendered. I like to disable the “sticky” feature, and place the whole responsive menu into a sticky bar. For doing that I have to place the responsive menu manually into the header.php.

    Can I do that somehow?

    Thx

    tomy

    https://wordpress.org/plugins/responsive-menu/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Tomy,

    Apologies I have been unavailable for the last 2 weeks.

    Yes, you can do this in versions 2.1 onwards. Simply tick the “Use as shortcode” option and then add the following to your header.php file where you want it to appear:

    <?php echo do_shortcode( '[responsive-menu'] ); ?>

    Please let me know how you get on with this.

    Many thanks

    Peter

    Thread Starter Anonymous User 7501994

    (@anonymized-7501994)

    Oh, God. Now I feel stupid to forget about do_shortcode… LOL
    But won’t be the navigation duplicated that way?

    Hi ftomy,

    Not a problem, these things happen!

    The menu will have the same settings as if you weren’t using a shortcode, and ticking the option in the admin will ensure that the plugin options only get included once.

    Please let me know if you get any strange behaviour with this however as the shortcode functionality is still in it’s infancy.

    Many thanks

    Peter

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Insert into header.php’ is closed to new replies.