I am a new bee in wordpress but i can code in PHP. I have a free wordpress theme installed on my local host. The theme Do not have an option to add to add menu/sub menu in it. It comes with predefined number of menus.
What i want is , can i add sub menu in the theme using some php skills? what i want is, a drop down sub menu when we hover over a menu..

Can i do it? if yes, How can i do it? i searched a lot, got videos and help about sub menus, but all of the help is about the themes which allow sub menu.

Clarification :-

i am not an expert, but what i know and what i think is that, it is a wordpress issue, i would need to code in menu.php or function.php to append sub menu to each element of main menu. The theme does not allow sub menu. I need sub menu be created in theme.

can you clarify how this is a wordpress question, and not a CSS question?
–
mor7iferFeb 11 '12 at 14:44

yes. it is wordpress question. I want to add sub menus in main menu..
–
Zaffar SaffeeFeb 11 '12 at 15:02

I'm aware that you think it is a wordpress question, I am asking you to clarify on just HOW it is a wordpress question, and not a CSS question...or even a user support question for your theme really. Preferably make this clarification in the question.
–
mor7iferFeb 11 '12 at 16:48

Maybe I can help clarify for N e w B e e. It's a WordPress question because he didn't have the WP Nav menu function. If the theme had custom navigation enabled then it would have simply been a CSS question.
–
Jeremy JaredFeb 11 '12 at 18:47

1 Answer
1

Be sure to use the updated code toward the bottom of my answer. It should be self explanatory, but if you have any issues let me know and I'll help you out. Be sure to back up your files before changing them in case you break it.

How to Add the Menu After The Code is in Place
Once the menu is installed you should notice that the custom menu's are now available in Appearance>Menu's. Just type a menu name in the box provided, add some pages and posts, then drag the sub-menu pages below and to the right of the parent menu item and release. Be sure to save the menu when you're finished.

If the answer helped you the procedure is to accept the answer by clicking the check-mark. If it was a good answer you can up-vote. If it didn't work just regard this comment.
–
Jeremy JaredFeb 11 '12 at 18:53