Second tier sidebar navigation

For now I have decided to use a CSS solution. I realized with the code above I do actually have classes I can work with. For example if you had this navigation in a you could use something like this. nav.sidebar li li li { display: none; } nav.sidebar li li.current_page_item > ul > li, … Read more

Is it possible to append an external html file to my wordpress navigation?

I got this to work on a static html page. The problem seems to be the white space in the append. I also removed all the ‘\’ and changed append to use single quotes. Maybe a jQuery expert can enlighten us. (function() { $(‘#mainMenu ul li.page-item-13 a’).append(‘<div id=”megaMenuCopy”><h3>The Range</h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing … Read more

list child pages as slug

Ok, this code should set you on the right path. It’s not designed to do exactly what you want, but judging by your code above, you seem fairly compitent, so should be able to amend as required. I’d also recommend looking at the Walker_Page Class, that way you can compare the methods below to those … Read more

add a.parent in wp_list_pages

According to this thread, you can add a custom Walker class to your wp_list_pages() call. It looks like that’s the way to go, since wp_list_pages() prints or returns a string. If you set $args[‘echo’] to false, you can do some string manipulation before you echo() it, but it seems to me that the Walker solution … Read more