Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] LH sub-menu styling (http://forum.bytesforall.com/showthread.php?t=16896)

incamedia Mar 1, 2012 05:28 PM

[SOLVED] LH sub-menu styling
 
Is there a way to configure the theme so it provides a styled child sub-menu as per the attached?

http://sussexcontraband.com/test/wp-...nu_example.jpg

juggledad Mar 1, 2012 06:11 PM

If the items 'St Hellings', 'Saxon Hastings' etc are the sub menus and you want all pages that have sub menus to show over there...there is nothing built in however

You could create a seperate WordPress custome menu for each of the sub menus, put them all in the left sidebar using the 'Custom menu' widget, then get the plugin 'exec-php' and for each page, display only the menu you need

jakobsmith Mar 2, 2012 02:05 AM

When I have to do left sidebars like this in Atahualpa, I use Subpages Extended:

http://wordpress.org/extend/plugins/subpages-extended/

It works well with WP 3.3.1.

I use these settings.

Then in the CSS inserts I do this:

Code:

div.widget ul li.page_item.current_page_ancestor, div.widget ul li.page_item.current_page_parent, div.widget ul li.page_item.current_page_item {
background: #7798b2;
color: #f2f2f2;
}

You can see an example here:
http://ortodoks.dk/ortodoks-tro-og-p...de-spoergsmaal

incamedia Mar 21, 2012 09:08 AM

Thanks Jakob that looks a good plugin - I have spent ages messing with css and looking for a similar plugin

incamedia Mar 28, 2012 04:27 PM

Hi Jakob

You suggested Subpages Extended which works OK. I put in your CSS but it only seems to work for the selected item http://oldsthelenschurch.evodev.net/history/history-2/
- I can't work out the CSS to give padding and background color for normal and hover as in the picture above. Can you help, I've spent ages on this?

In fact the functionality is not quite what I want which is like this site http://www.lewespriory.org.uk/history-overview
is there a way to use Subpages Extended for that functionality?

Thanks
Ian

incamedia Mar 29, 2012 03:49 PM

Thanks to Jakob for the following CSS to style the lh menu...

/** ===================== **/
/** Styling lh menu **/
/** ===================== **/
/** Styling selected item **/
div.widget ul li.page_item.current_page_ancestor, div.widget ul li.page_item.current_page_parent, div.widget ul li.page_item.current_page_item {
background: #e1d6c7;
color: #fffff;
padding: 7px 10px;
font-size: 16px;
font-family:"Times New Roman",Georgia,Serif;"Times New Roman", Times, serif;
font-weight: bold;
text-transform: uppercase;
}
/** Styling non-selected item **/
div.widget ul li.page_item {
background: #c4b199;
margin-bottom: 1px;
padding: 7px 10px;
font-size: 16px;
font-family:"Times New Roman",Georgia,Serif;"Times New Roman", Times, serif;
font-weight: bold;
text-transform: uppercase;
}
/** Styling hover **/
div.widget ul li.page_item:hover {
background: #e1d6c7;
}

/** highlight parent of current page **/
ul.rMenu li.current_page_parent a:link,
ul.rMenu li.current_page_parent a:active,
ul.rMenu li.current_page_parent a:hover,
ul.rMenu li.current_page_parent a:visited,
ul.rMenu li.current_page_parent {
background: #c4b199 !important;
}


All times are GMT -6. The time now is 03:37 PM.

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