Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Akhilesh,

    First of all thanks for downloading and using the plug-in, I hope it serves you well!

    It is possible to echo the HTML in the header, however this is of course invalid HTML. When you say header, do you mean inside the <head></head> section?

    If so, then you will need to open up the following file:

    /app/controllers/HTMLController.php

    and change (around line 17):

    add_action( 'wp_footer', array( 'RM_HTMLController', 'display' ) );

    to:

    add_action( 'wp_head', array( 'RM_HTMLController', 'display' ) );

    This will now display it inside the <head></head> section, however as said before I wouldn’t recommend this as it is incorrect HTML.

    Let me know how you get on with the above, or if I have mis-understood your request please let me know.

    Many thanks

    Peter

    Hi Akhilesh,

    I have created very basic shortcode support for the plug-in, it doesn’t do much except allow you to use the shortcode to place the HTML where you want it.

    It is part of the 2.1 beta and needs to be activated from the admin area, if you would like to you can download and test it from:

    https://downloads.www.ads-software.com/plugin/responsive-menu.2.1.zip

    You will need to overwrite the current files in the responsive-menu folder with these, then go to the admin and active the use shortcode option.

    You can then use the shortcode in the following ways:

    In Pages
    [responsive-menu]

    Using PHP
    do_shortcode( ‘responsive-menu’ );

    Let me know how you get on with this and any questions let me know!

    Many thanks

    Peter

    Thread Starter akhilesh.kumar

    (@akhileshkumar-1)

    Hi peter;

    Actually i want to echo html of this menu within the <header></header>

    But this is not coming.

    I have also tried the version 2.1 where u have generated the do_shortcode() but this is also not working using php.

    So if you have any idea regarding the same, please help me as soon as possible

    Hi Akhilesh,

    Ok, this makes sense now, yes the <header></header< is fine.

    My apologies, my do_shortcode snippet was incorrect, it was late and I was rushing to get to bed!

    Please update to this (including the square brackets []):

    <?php do_shortcode( ‘[responsive-menu]’ ); ?>

    Let me know if this works for you.

    Many thanks

    Peter

    Hi Peter

    i have same problem . my website use responsive menu plugin and its working properly without home page .and plugin do not show slider menu on click.
    url:https://www.agileadvertisingmarketing.com/

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi sk,

    You have Javascript errors on your site, please see the below error:

    "TypeError: jQuery.ptTimeSelect is undefined
    $(document).mousedown(jQuery.ptTimeSelect._doCheckMouseClick);"

    Please fix and the menu will work.

    All the best

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘echo html of responsive menu plugin in header instead of footer’ is closed to new replies.