I have the function below for my WordPress menu but every time I add a sub-menu, it doesn’t show as it’s supposed to.
register_nav_menus( array(
'primary' => __( 'primary-menu', 'Primary Menu' ),
) );
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hard to say what’s wrong without seeing more code or a site URL. But check your menu call in functions.php and in the template file (such as header.php) and the minimum css in the style sheet.
No reason to use Superfish within WordPress; WordPress 3+ menus are pure css and don’t depend on javascript, and Superfish hasn’t been updated in four years.
These are the basic functions and css from twentyeleven; use them as a basis for your own code.
functons.php :
header.php :
style.css :