• pase

    (@photoshopace)


    Trying to customize a wordpress menu list item. The menu was created through the wordpress admin panel. I am unable attach the javascript function show/hide to a specific wordpress menu list item.

    I have added a class to the menu list item through the wordpress admin area > screen options > CSS Classes. However this class is not triggering the javascript function show/hide.

    What am I missing to in order to attach the javascript function to the wordpress generated navigation menu?

    $(document).ready(function(){
    $(“.hide”).click(function(){
    $(“.webform”).hide(500);
    });
    $(“.show”).click(function(){
    $(“.webform”).show(500);
    });
    });

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding JS to wordpress menu item’ is closed to new replies.