Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Hard Code Horizontal Menu For Child Pages


  #1  
Old Jan 26, 2012, 09:40 AM
bswb97
 
158 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).
  #2  
Old Jan 26, 2012, 02:28 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
 
158 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:20 AM.


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