gregremote
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp list pages validation problemlooks like you were right this was surrounding code.
Thank you!
Forum: Fixing WordPress
In reply to: wp list pages validation problemsorry – and thanx much for the quick response – I took out the exclude I was using to try and simplify things – which was not as intelligent =|
<ul id="dropmenu"> <?php wp_list_pages('exclude=' . get_page_by_title('Privacy Policy') -> ID . '&sort_column=menu_order&title_li='); ?> </ul>
the exclude is working – but somehow leaves an open tag I think? I found this – not sure if it pertains to my situation:
Here is what the above outputs:
<ul id="dropmenu"> <li class="page_item page-item-5 current_page_item"><a href="https://www.por7al.com/wp_excelone/" title="Home">Home</a></li> <li class="page_item page-item-6"><a href="https://www.por7al.com/wp_excelone/?page_id=6" title="Our Perspective">Our Perspective</a></li> <li class="page_item page-item-7"><a href="https://www.por7al.com/wp_excelone/?page_id=7" title="Services">Services</a> <ul> <li class="page_item page-item-8"><a href="https://www.por7al.com/wp_excelone/?page_id=8" title="Individual">Individual</a></li> <li class="page_item page-item-9"><a href="https://www.por7al.com/wp_excelone/?page_id=9" title="Small Business">Small Business</a> <ul> <li class="page_item page-item-23"><a href="https://www.por7al.com/wp_excelone/?page_id=23" title="Business Advantage">Business Advantage</a></li> </ul> </li> <li class="page_item page-item-11"><a href="https://www.por7al.com/wp_excelone/?page_id=11" title="Corporations">Corporations</a></li> </ul> </li> <li class="page_item page-item-15"><a href="https://www.por7al.com/wp_excelone/?page_id=15" title="Markets">Markets</a> <ul> <li class="page_item page-item-274"><a href="https://www.por7al.com/wp_excelone/?page_id=274" title="Emerging Markets">Emerging Markets</a></li> <li class="page_item page-item-287"><a href="https://www.por7al.com/wp_excelone/?page_id=287" title="Developed Markets">Developed Markets</a></li> </ul> </li> <li class="page_item page-item-13"><a href="https://www.por7al.com/wp_excelone/?page_id=13" title="Team">Team</a> <ul> <li class="page_item page-item-329"><a href="https://www.por7al.com/wp_excelone/?page_id=329" title="Careers">Careers</a></li> </ul> </li> <li class="page_item page-item-314"><a href="https://www.por7al.com/wp_excelone/?page_id=314" title="Process">Process</a> <ul> <li class="page_item page-item-309"><a href="https://www.por7al.com/wp_excelone/?page_id=309" title="Performance">Performance</a></li> </ul> </li> <li class="page_item page-item-21"><a href="https://www.por7al.com/wp_excelone/?page_id=21" title="Contact">Contact</a></li> <li class="page_item page-item-17"><a href="https://www.por7al.com/wp_excelone/?page_id=17" title="Blog">Blog</a></li> </ul>
Forum: Fixing WordPress
In reply to: wp list pages validation problemWell I will give it a day or two and if no answer – post again.
As far as context – I am using it to list the menu items.
<ul id="dropmenu"> <?php wp_list_pages('&sort_column=menu_order&title_li='); ?> </ul>
Forum: Fixing WordPress
In reply to: wp list pages validation problemanyone else on this? I have been trying to track down a solution to this for a while…
Forum: Fixing WordPress
In reply to: wp list pages validation problemhow did you resolve this?
wp_list_pages isn’t validating for me.
Forum: Themes and Templates
In reply to: wp_list_pages nested structure and class inheritancehttps://www.ads-software.com/support/topic/296283?replies=6
thanks much for this post – solved my situation exactly. I was also able to set a style for current_page_parent – so the parent has one style the child another.
Forum: Fixing WordPress
In reply to: CSS styling menus to show current page (done automatically)Hey thank you for that!
I didn’t realize that current page was included in the class description.
To achieve what I was looking for in my case was to add current_page_item to my hover class. I suppose you could have different styling for hover and current_page_item too.
from:
#dropmenu a:hover {to:
#dropmenu .current_page_item a, .current_page_item a:hover {