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
  #1  
Old Jan 26, 2012, 09:40 AM
bswb97
 
150 posts · Aug 2010
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).
  #2  
Old Jan 26, 2012, 02:28 PM
juggledad's Avatar
juggledad
 
22,263 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
well you could look at the generated source, copy all the menu html, edit it to strip out all the ID's and Classes t, then put it in the 'Configure Header Area' option in place of %pages.

Of course you would now have to add new classes and ID into the html and provide your own CSS to style it the way you want.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 27, 2012, 09:08 AM
bswb97
 
150 posts · Aug 2010
Ugh. Consider it solved -- copying and pasting the source code into the header section works, then creates a lot of CSS fine tuning. I'm gauging my options right now.

This leads to another question, though...new thread!

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 07:49 PM.


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