Archived topic
Adding a veritical sub-menu in left or right page column sections
11 replies · Started by dnrtech on October 16, 2018
We have a horizontal primary menu with drop-downs, which works fine. See: http://c56368.sgvps.net/~dnrstudios/contact
However is there a way or a recommended plugin to use, to display a sub-page menu for the section you are in, on the left or right page column sections? See the original site and it's menu here: https://www.dnrstudios.com/contact/
Ping
Hi there,
this plugin can do the job:
https://wordpress.org/plugins/be-subpages-widget/
Or Bill actually provides the basic PHP to convert the secondary menu to display sub pages. Note: you must assign a menu to the Secondary menu for it to work, I used the same menu as the Primary nav has.
https://www.billerickson.net/code/submenu-items-in-secondary-menu/
David,
Thanks for your support. I installed be-subpages-widget and put the widget in the "Left Sidebar" under: Appearances > Widgets
But the sub-page menu does not display. I have tried customizing the "Sidebar" options with almost every conceivable option. I would think that setting all of them to "Sidebar / Content" would get it to work right somewhere. But it never appears.
Any suggestions?
Can you go to Customizer > Menus, and the menu you have assigned to your Primary Navigation also assign it to the Secondary Navigation.
Hi David,
The Secondary Navigation was not assigned. So I assigned the Primary to the Secondary, but the result was not what I wanted. That resulted in simply putting the same horizontal Primary Menu, vertically.
What I want, is a sub-page menu vertically, that only shows the one parent and all the child pages listed in vertical menu format, in the left sidebar. These sub-pages are not defined in any particular Menu and they are different for each primary page. See http://c56368.sgvps.net/~dnrstudios
I thought the plugin you suggested would have given me that, but it did not produce any output.
I got it to work. Stupid me. I had all my pages on one level without any parents. Just corrected that.
But now one other question, how do I change (enlarge) the font used for the subpage menu?
I can't tell if it's the same font as the rest of the page, other than size.
EDIT
Glad to hear that
Can you link me to a page with the sub menus? Currently i get a 404
David,
You got a 404 by clicking the parent page, which is a redirect to the first sub-page. And the redirect doesn't work yet due to the linking method. So if you go to the first sub-page, you'll see the menu:
Try this:
.sidebar .widget {
font-size: 15px;
}
Perfect, it worked. I bumped it up to 18px.
Darren
Awesome. Glad to be of help.