Jin Menu FAQ

What For Jin Menu ?

if you want to add an onclick event to your wordpress menu.then there no option in wordpress to do so,this plugin help you to do so.
you can call any javascript/jQuery function with yor menu item.

How To Use ?

If you want to execute some javascript or jQuery function when your menu is pressed.
for example you can put this javascript code .

[js]
if(confirm(“your Message”)){

window.open(‘http://buffernow.com/’);

}
[/js]

How to call my own javascrip jquery Function ?

You can add your function in addition tab of menu.
after that you can call them from your custom menu
for example
this is your function

[js]
function foobar(){

if(confirm(“your Message”)){

window.open(‘http://buffernow.com/’);

}

}
[/js]

add this funtion in jin menu addition tab.
than in menu option insert

[js]foobar();[/js]

Thats it.

 

If You Have any query Please comment here.

  • Don

    I have installed Jin Menu and it appears to work fine if I use href=# and alert() as the ‘onclick’ event. However what I actually want to do is to use the onclick event to run another plugin (simplepopup plugin) to display ‘Terms and Conditions’ in a popup window. I have this working elsewhere on the page from an tag (…T&Cs …) – but want to be able to access it from the menu. No matter what I try in the Jin Menu set up nothing seems to work. Can you advise?

  • Don

    I have installed Jin Menu and it appears to work fine if I use href=# and alert() as the ‘onclick’ event. However what I actually want to do is to use the onclick event to run another plugin (simplepopup plugin) to display ‘Terms and Conditions’ in a popup window. I have this working elsewhere on the page from an tag (…T&Cs …) – but want to be able to access it from the menu. No matter what I try in the Jin Menu set up nothing seems to work. Can you advise?

  • Don

    After a lot of playing around with JinMenu I have worked out that the plugin IS working – but it does have a small bug!

    The plugin works fine if you use a single word for the Navigation Label (e.g. Terms or test or…) but DOES NOT work if you use a double word (or more than one word) Navigation Label (e.g. Terms and Conditions) or non-alpha-numerics (e.g. Terms&Conditions).

    I have tried using character entity values (e.g. Terms&Conditions), URL encoding (e.g. Terms%26Conditions) and enclosing the Navigation Label in either quotes or double quotes but the only way the plugin will work is by using a single word Navigation Label. For the moment I have settled for ‘Terms’ (without the quotes since they show in the link and stop the plugin from working) – but I would much prefer to correctly identify the link (Terms & Conditions)?

    Regards

  • Don

    After a lot of playing around with JinMenu I have worked out that the plugin IS working – but it does have a small bug!

    The plugin works fine if you use a single word for the Navigation Label (e.g. Terms or test or…) but DOES NOT work if you use a double word (or more than one word) Navigation Label (e.g. Terms and Conditions) or non-alpha-numerics (e.g. Terms&Conditions).

    I have tried using character entity values (e.g. Terms&Conditions), URL encoding (e.g. Terms%26Conditions) and enclosing the Navigation Label in either quotes or double quotes but the only way the plugin will work is by using a single word Navigation Label. For the moment I have settled for ‘Terms’ (without the quotes since they show in the link and stop the plugin from working) – but I would much prefer to correctly identify the link (Terms & Conditions)?

    Regards

  • Don

    Thank you!

  • Don

    Thank you!

  • Sunni

    Hi! I was so grateful to have found your plugin. I have an onClick event that is to trigger an Aweber form, but the plugin does not seem to be working. Or perhaps it is my code (I’m not a coder) Here is the code I’m entering in the plugin’s field: onclick= awf_Form_.showForm(); return false; – am I missing something?

    • buffernow

      ok
      what label you are using for menu
      as it cause problem for long label we will update it soon
      also
      please share your website.
      i will try to figure it out
      the code in textbox will be
      awf_Form_.showForm(); return false;
      do not use onclick=

  • Sunni

    Hi! I was so grateful to have found your plugin. I have an onClick event that is to trigger an Aweber form, but the plugin does not seem to be working. Or perhaps it is my code (I’m not a coder) Here is the code I’m entering in the plugin’s field: onclick= awf_Form_.showForm(); return false; – am I missing something?

    • buffernow

      ok
      what label you are using for menu
      as it cause problem for long label we will update it soon
      also
      please share your website.
      i will try to figure it out
      the code in textbox will be
      awf_Form_.showForm(); return false;
      do not use onclick=

  • divebel

    Hi, I have followed your instructions but as I am a newbie to javascript, I can’t get it working. I need to add a custom link to my WP menu so that when the visitor clicks on the menu item “LISTEN NOW!” a new window opens to a specific .com url, and the window opens in the specific size of 600 x 600 pixels size. How do I do this? Thank you in advance for your assistance and I look forward to hearing from you. divebel 🙂

    • buffernow

      use this code in onclick textbox

      window.open(‘http://google.com’,’window’,’width=600,height=600,scrollbars=no,status=yes,resizable=no,location=no’);

      replace google.com with your url

  • divebel

    Hi, I have followed your instructions but as I am a newbie to javascript, I can’t get it working. I need to add a custom link to my WP menu so that when the visitor clicks on the menu item “LISTEN NOW!” a new window opens to a specific .com url, and the window opens in the specific size of 600 x 600 pixels size. How do I do this? Thank you in advance for your assistance and I look forward to hearing from you. divebel 🙂

    • buffernow

      use this code in onclick textbox

      window.open(‘http://google.com’,’window’,’width=600,height=600,scrollbars=no,status=yes,resizable=no,location=no’);

      replace google.com with your url

  • derek

    hi buffer, i am having issues with the plugin. it looks to do what i need, but when i installed the plugin and try to edit the plugin, i do not see the “menu options” tab. did this change in the most recent version of the plugin?

    • buffernow

      can you please elaborate
      what you exactly want ?

  • derek

    hi buffer, i am having issues with the plugin. it looks to do what i need, but when i installed the plugin and try to edit the plugin, i do not see the “menu options” tab. did this change in the most recent version of the plugin?

    • buffernow

      can you please elaborate
      what you exactly want ?

  • lipstickdesign

    Hi! I have a WordPress menu item called Search. I want to set focus to the search input field in footer when clicking the menu item. I have watched this http://www.mediacollege.com/internet/javascript/form/focus.html under the section “Setting Focus From Another Event”.

    How can I get this to work? The search widget in WordPress doesn’t have any form name, only a field name. Anyone who knows how I can set focus with Jinmenu plugin?

    • buffernow

      use this code in menu item
      document.myform.mytextfield.focus();

      • lipstickdesign

        Yes I have tried this and in different variations. I wasn’t sure if I had to use all of this. Thanks for your answer! It made me figure it out!

        Cause there was more to it – and now it was much easier to figure out: I found out that WordPress don’t give the form a name attribute. The widget form don’t have “myform”. When I added name=”widgetform” it now works perfectly. Thanks for your hint:)

  • lipstickdesign

    Hi! I have a WordPress menu item called Search. I want to set focus to the search input field in footer when clicking the menu item. I have watched this http://www.mediacollege.com/internet/javascript/form/focus.html under the section “Setting Focus From Another Event”.

    How can I get this to work? The search widget in WordPress doesn’t have any form name, only a field name. Anyone who knows how I can set focus with Jinmenu plugin?

    • buffernow

      use this code in menu item
      document.myform.mytextfield.focus();

      • lipstickdesign

        Yes I have tried this and in different variations. I wasn’t sure if I had to use all of this. Thanks for your answer! It made me figure it out!

        Cause there was more to it – and now it was much easier to figure out: I found out that WordPress don’t give the form a name attribute. The widget form don’t have “myform”. When I added name=”widgetform” it now works perfectly. Thanks for your hint:)

  • Pete

    Does you plugin work with the latest version of wordpress as I have tried on a couple of websites and it is not working? I just added alert(‘hello’) , but I check the code using developers tools I can not see any added code to the link?

    • buffernow

      Hi Pete
      I just update it
      and it is compatible with latest version of WP
      you can check it live on
      http://devki.buffernow.com/
      Thanks

  • Pete

    Does you plugin work with the latest version of wordpress as I have tried on a couple of websites and it is not working? I just added alert(‘hello’) , but I check the code using developers tools I can not see any added code to the link?

    • buffernow

      Hi Pete
      I just update it
      and it is compatible with latest version of WP
      you can check it live on
      http://devki.buffernow.com/
      Thanks

  • Sam

    Hi, I have installed the plugin in a wordpress site with the Genesis theme. The jinmenu item is not showing up under the appearance option. I do not know what is wrong but its not working at all. I activated the plugin but cannot see anything in the admin related to jinmenu. I am using the latest wordpress i.e. WordPress 3.8.1. Please help me out with this problem.

  • Sam

    Hi, I have installed the plugin in a wordpress site with the Genesis theme. The jinmenu item is not showing up under the appearance option. I do not know what is wrong but its not working at all. I activated the plugin but cannot see anything in the admin related to jinmenu. I am using the latest wordpress i.e. WordPress 3.8.1. Please help me out with this problem.

  • Lisa

    Is there some way to get the plugin to also deal with menus that are included as widgets instead of nav menus?

    • buffernow

      Great Idea Lisa
      we ll do in next version 🙂
      Thanks

  • Lisa

    Is there some way to get the plugin to also deal with menus that are included as widgets instead of nav menus?

    • buffernow

      Great Idea Lisa
      we ll do in next version 🙂
      Thanks

  • Hass

    Hallo, I’d like to use your plugin. I have installed, but it does not show up in “Appearance”. Am I doing something wrong? It says “Plugin activated”, when activated…

    Best regards, Hass

  • Hass

    Hallo, I’d like to use your plugin. I have installed, but it does not show up in “Appearance”. Am I doing something wrong? It says “Plugin activated”, when activated…

    Best regards, Hass

  • Hass

    Ok, so the “OnClick Javascript Code” show up in menu, but after saving the menu t doesn’t seem to add any javascript in the link…

    Best regards, Hass

    • buffernow

      Hi Hass
      Please share your URL

  • Hass

    Ok, so the “OnClick Javascript Code” show up in menu, but after saving the menu t doesn’t seem to add any javascript in the link…

    Best regards, Hass

    • buffernow

      Hi Hass
      Please share your URL

  • Igor

    Hallo, I’ve installed this wonderful plugin but I can get it to work: I have not the voice “JinMenu” under “Appearance”. I tried to deactivate and reactivate with no success.
    Wordpress 3.8.1 on my hosting service (no wordpress.com). Any help?

  • Igor

    Hallo, I’ve installed this wonderful plugin but I can get it to work: I have not the voice “JinMenu” under “Appearance”. I tried to deactivate and reactivate with no success.
    Wordpress 3.8.1 on my hosting service (no wordpress.com). Any help?

  • Dan

    Hi there, the plug in seems like exaclty what i need, however i can’t put it to work. I installed place # on URL and on Onclick Javascript code the required code: alert (“Welcome”); can u help me? thanks

    • buffernow

      Hi Dan
      can you share your URL ?

  • Dan

    Hi there, the plug in seems like exaclty what i need, however i can’t put it to work. I installed place # on URL and on Onclick Javascript code the required code: alert (“Welcome”); can u help me? thanks

    • buffernow

      Hi Dan
      can you share your URL ?

      • Dan

        Hey thanks for your reply.. solved the problem 🙂

  • Adeel Mukhtar

    MY problem is that when i insert onclick event. onclick automatically reamove in wordpress please any help me

    • buffernow

      Ok we are going to update it
      may be next version solve your problem 🙂

  • Mademoiselle-T

    Hello, Jin Menu is great ! But I have the plugin in my wordpress site and it’s not showing up under the appearance option and in menu parameter with WordPress 3.9.1. There is not the .”OnClick Javascript Code” box.

    • buffernow

      is there another plugin or theme that adds some options in menu ?
      we will update it soon

      • Mademoiselle-T

        Yes, I have the Haiku Player with that I can add music on menu.

        • buffernow

          ok Mademoiselle
          we are working on noconflict addon
          please wait some time for its release

  • Gabriel Flores Olea

    I have wordpress v3.9.2, I have installed the plugin from wordpress, everything looks ok, but when I go to Appereance -> Menus and add Link item to the menu the ONCLICK section doesnt appear, I tested it on my localhost and it worked great (v3.9.1), but when installed on web server didnt work.

    • buffernow

      is your live server is windows ?
      is there is some another plugin that adds some option in menu ?

      many users report this
      we will update it soon

      • Gabriel Flores Olea

        Is there a way to do it manually? I really need to get this function to work

        • buffernow

          here is the tutorial to do it manually
          http://buffernow.com/javascript-in-wordpress-menus-url/

          • Gabriel Flores Olea

            Thank you so much, it was very helpful = )… I hope you update the plugin soon to work with the new versions of wp, thank you again and congrats for this plugin! = )

  • eduardo teixeira

    Hi there, I installed the plugin, and if I put any JS code, it doesn’t work on website. not even a simple alert… Can you please help me?

    • buffernow

      is your theme is using jQuery

  • Any update on when it’ll be compatible with WP 4.0? This plugin is exactly what we need, if only it worked with 4.0. Any reply would be beneficial. Thanks.

  • buffernow

    did you try to execute
    triggerBeforeAfterGallery(0) in firebug ?

    try simple alert(“hello”) if alert is not working let me know

    • buffernow

      then its not plugin fault
      can you share your url

      • buffernow

        your plugin is not rendering html of BeforeAfterGallery
        that’s why its not working ,once its fixed jin menu will also worked

        • buffernow

          if popup is comming from ajax then it will not work
          i tried your code with console as well and sadly it was not working .

          • buffernow

            please rate the plugin
            if you find it useful

  • Aohor Arefin

    how to add leaving website popup?

    • buffernow

      here is your function

      function myFunction() {
      var txt;
      var r = confirm(“leaving website”);
      if (r == true) {
      window.location = “http://www.yoururl.com”;
      }
      }

  • David Gerber

    Hi, first of all, this plugin is a great idea and exactly what I searched for 🙂
    But I’m having problems getting it working, first it worked, but now it doesnt work anymore, any usual problem causes?
    Im using it in no conflict mode.

    Thank you very much!

    • buffernow

      hello David may i see your site
      may be it will be jquery issue with your site