Thursday, November 15, 2012

php – How to add custom code to specific s in wordpress while building navigation?

the website in question is right here I\’m trying to generate a CSS dropdown, however no such option is available in wp_list_pages(), I also won\’t be able to get the desired effect using WP Menus in the appearance menu (I used this method to generate my footer links)


This is ideal:


IMAGE


I know how to generate the menu, I just don\’t know how to get it under the \”cars\” menu without a hack javascript solution.


The ideal solution involves targeting the list item by the template name \”Car Showcase\” and allowing me to generate PHP/HTML (The code needed to make the dropdown) after it. Does this make sense to everyone?






Rating: out of 5 based on ratings



The post php – How to add custom code to specific <li>s in wordpress while building navigation? appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/php-how-to-add-custom-code-to-specific-lis-in-wordpress-while-building-navigation.html

No comments:

Post a Comment