Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

[SOLVED] Hard Code Horizontal Menu For Child Pages


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old Jan 26, 2012, 09:40 AM
bswb97
 
148 posts · Aug 2010
[SOLVED] Hard Code Horizontal Menu For Child Pages

I saw here (http://forum.bytesforall.com/showthr...enu+horizontal) that it is essentially impossible for the menu system to display the child menu in a horizontal order.

Since the sub-menu is auto-generated, is it possible to simply code in multiple links as a sub-menu item in the Header file? For example, the site I'm working on has child menu items for various service locations:

HTML Code:
<ul class="rMenu-ver sub-menu">
	<li id="menu-item-56" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-56"><a href="http://www.labohemeevents.com/index.php/los-angeles/"><span>Los Angeles</span></a></li>
	<li id="menu-item-55" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-55"><a href="http://www.labohemeevents.com/index.php/san-diego/"><span>San Diego</span></a></li>
	<li id="menu-item-54" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-54"><a href="http://www.labohemeevents.com/index.php/denver/"><span>Denver</span></a></li>
	<li id="menu-item-53" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-53"><a href="http://www.labohemeevents.com/index.php/destination/"><span>we travel</span></a></li>
</ul>
If I want to make them horizontal, in theory couldn't I hard code <li id="menu-item-56" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-56"> for the first drop down as a single item with four HREF links? Thus, they'll all display as the single first drop down menu?

If that will work, the question is how do I implement this because of the PHP menu function? Could I in theory comment out the PHP menu function, then copy the as-displayed HTML and insert it into the appropriate area in Header.php? I only have the menu in the header (no header image, no logo).
 

Bookmarks

Tags
drop down menu, horizontal child menu, horizontal drop down menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display child pages in a horizontal menu bar? edvandyke Page & Category Menu Bars 4 Sep 2, 2011 09:33 AM
[SOLVED] Hard code a single page menu link to an existing (non-wordpress) website jms5017 Page & Category Menu Bars 4 Aug 3, 2010 04:45 AM
[SOLVED] How to Hard Code Links into Cat Menu agcoco Page & Category Menu Bars 2 Jul 1, 2010 02:35 PM
Can I hard code some text in a new widget area? horsemansarts Sidebars & Widgets 0 Nov 10, 2009 04:59 PM


All times are GMT -6. The time now is 12:39 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.