Click here to Skip to main content
12,505,405 members (64,467 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: CSS HTML PHP wordpress
I have created my own theme in wordpress and i have added below mentioned pages in that theme

header.php
footer.php
index.php
sidebar.php
functions.php
page.php
style.css

In functions.php i have written this code
<?php
function register_my_menu()
{
register_nav_menu('Primary-Menu',__( 'Primary Menu' ));
}
 
add_action( 'init', 'register_my_menu' );
/* end of code */
 /*by writing this line menu displayed on theme  menu code finished */
?>


My menu and sub menus are visible on theme but sub menus are not coming under the mentioned menu.
What to do??
Thanx in advance
Posted 7-May-14 21:40pm
Comments
Sunasara Imdadhusen 8-May-14 5:34am
   
I think there is CSS issue, please share CSS code as well
Ashishbhatt007 15-May-14 2:01am
   
what is style in your css file, can you share your code, so i can give you better answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 8 May 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100