-
AuthorPosts
-
July 7, 2015 at 2:09 pm #469659
Hey Kriesi
On this site, you have a sidebar on the left side, with pages that are subpages to the page “pages”. How did you make that?
http://kriesi.at/themes/enfold/pages/When I choose Enfold > Sidebar settings > and activate “Page Sidebar navigation”, it comes out like this:
http://dendigitaleverden.dk/fadl/organisation/aarhus/
Besides the subpages, it also shows pages that are parent pages (same parent page as the current chosen page). Also, there’s a weird styling with small “dots” besides each subpage, but not the other parent pages. The widget that i chose is empty, so i don’t understand, why it doesn’t look like your sidebar. Any idea why? Thanks!July 8, 2015 at 1:31 pm #470239Hi steffenhn!
ad first please upgrade to Enfold v3.2.2.
Seems like you achieved it as different links are pages of the page “aarhus”.
You can remove those dots with this code in Quick CSS field:
#top .widget_nav_menu ul ul li:before { display: none; }
Best regards,
AndyJuly 8, 2015 at 3:04 pm #470310Hi Andy
Thanks for the reply. I upgraded to v3.2 on my localhost (not the link I shared), but the problem persists. I also tried adding your code, but as you said, that only remove the dots:
What I want is the same configuration as you are using here: http://kriesi.at/themes/enfold/pages/
All the pages in your sidebar is subpages, while on my site, the 3 at the bottom are NOT subpages (Hovedforeningen, København, Odense). And i don’t understand why they are shown there. Also, besides the dots, all the subpages shown in the sidebar has a different background, which they don’t on your site, and the page from my site (aarhus) is also shown in the sidebar. On your site (pages), the word ‘pages’ isn’t there. Does that makes sense? It’s hard to explain.
July 9, 2015 at 1:47 pm #470827Hi!
you can change background color for this using following code:
li.page_item.page-item-97.page_item_has_children.current_page_item { background-color: transparent; }
I thought removing the dots is what you wanted? what else? maybe remove the border as well?
add this to my code above:li.page_item.page-item-97.page_item_has_children.current_page_item { background-color: transparent; box-shadow: none; }
Not sure where the problem is belonging your subpages, because I can see that three links are working as expected, so just do the same for the other links.
Best regards,
AndyJuly 10, 2015 at 2:36 pm #471460Hi Andy
Thanks again for the response. I’m sorry that i’m not very clear. It’s hard to explain :)
I just don’t understand why I need to do all this stuff. When I have a page, I just want to display the subpages of that page in a sidebar, like you have here: http://kriesi.at/themes/enfold/pages/
But instead, when I make a sidebar, I get the dots, the background and other pages (Hovedforeningen, København, Odense) which are NOT subpages. Is that supposed to happen? I just want the subpages, like this option says:
Not other pages in the sidebar, that are not subpages. Does that make sense?
July 16, 2015 at 10:00 am #474129Still looking for an answer – haven’t been able to figure out how to solve it. Thanks.
July 20, 2015 at 3:33 pm #475869Hey!
Open up /enfold/functions-enfold.php and around line 1084 you should see this.
$args = array('title_li'=>'', 'child_of'=>$parent, 'echo'=>0, 'sort_column'=>'menu_order, post_title');
Try changing it to this.
$args = array('title_li'=>'', 'depth' => 1, 'child_of'=>$parent, 'echo'=>0, 'sort_column'=>'menu_order, post_title');
You can change the depth => 1 to -1, 0, 1, 2, 3, etc etc, to choose how far down the heirarchy you wish to display.
Regards,
ElliottJuly 27, 2015 at 2:35 pm #479077That did the trick. Thanks! You can close the thread now :)
-
AuthorPosts
- The topic ‘Sidebar shows other pages than subpages’ is closed to new replies.