Plugin Author
Sana Ullah
(@phpinterviewquestioncom)
Hello,
you need to replace below function with jquery_drop_down_menu() existing function in jquery-drop-down-menu.php
function jquery_drop_down_menu($home=’Home’) {
$gdd_wp_url = get_bloginfo(‘wpurl’) . “/”;
$home_link = get_option(‘home_link’);
$include = get_option(‘include’);
$fadein = get_option(‘fadein’);
$fadeout = get_option(‘fadeout’);
$sort_by = get_option(‘sort_by’);
$sort_order = get_option(‘sort_order’);
$depth = get_option(‘depth’);
$exclude_pages = get_option(‘exclude_pages’);
$custom_menu = get_option(‘custom_menu’);
$custom_menu_value = get_option(‘custom_menu_value’);
$custom_menu_include = get_option(‘custom_menu_include’);
$parameters=’title_li=’;
if($sort_by)
$parameters.=’&orderby=’.$sort_by.”;
if($sort_order)
$parameters.=’&order=’.$sort_order.”;
$parameters.=’&depth=’.$depth.”;
if($exclude_pages)
{
$parameters.=’&exclude=’.$exclude_pages.”;
}
echo ‘<ul id=”dropmenu”>’;
if($home_link)
{
echo ‘<li >‘.$home.’‘;
}
if($custom_menu==1 && $custom_menu_include==1)
{
echo stripslashes($custom_menu_value);
}
wp_list_categories($parameters);
if($custom_menu==2 && $custom_menu_include==1)
{
echo stripslashes($custom_menu_value);
}
echo ”;
}
to work with categories.
Thanks
Hi,
Is there a way to implement an .active class on menu items and/or their parents are the active page?
thanks.