On our website, we have three areas in the same level as the frontpage. When setting up the sidebar, it only shows the page with subpages, and not all the pages.
Example:
Frontpage / Area 1 / Area 2 / Area 3
Area 1, 2, and 3 all have subpages.
When setting up the plugin now, the pages shown in the sidebar is (seen from Area 1):
Area 1
– Subpage 1.1
– Subpage 1.2
– Subpage 1.3
… etc.
Instead of this, we would like to show all pages, so it looks like this:
Frontpage
Area 1
– Subpage 1.1
– Subpage 1.2
– Subpage 1.3
Area 2
– Subpage 2.1
– Subpage 2.2
– Subpage 2.3
Area 3
– Subpage 3.1
– Subpage 3.2
– Subpage 3.3
Is there somehow we can achieve this without changing the URL structure?
OnPoint Plugins
Good Morning Anita,
This may be accomplished using a template override.
advanced-sidebar-menu
.page_list.php
.Have a great day!
Anita Nielsen
Thanks! That worked!
The menu items / sidebar items are in reversed alphabetical order. So the order is:
K
F
B
… instead of:
B
F
K
I can see on the screenshot here, that it should be possible to choose either ascending or descending order, but I don’t have this field in my backend: https://onpointplugins.com/advanced-sidebar-menu/advanced-sidebar-menu-pro-widget-docs/advanced-sidebar-menu-pro-categories-menu/
How do I then reverse the order, so it shows alphabetically?
OnPoint Plugins
Hi Anita,
Currently only the categories widget supports changing the order between ascending and descending.
This version of the template override will use the widget’s default order settings which is “ASC”.
Have a great day!
Anita Nielsen
Great, thanks! Should I place it in the page_list.php or functions.php?
OnPoint Plugins
page_list.php, replacing all contents of the file.
Anita Nielsen
Thanks! That worked!