Hello guys,
Wanted to know if someone can help me out on this problem.
I have a series of unordered lists and among them I am calling a series of page titles. Here let me include my code:
<?php if(is_page()){ ?>
<div id="subnav">
<ul id="bullets">
<li><a href="http://www.ifcj.org/site/PageNavigator/sfi_about" class="about"><span>About Israel</span></a></li>
<li><a href="http://www.ifcj.org/site/PageNavigator/sfi_news" class="news"><span>News & Blog</span></a></li>
<li class="current_page_ancestor"><a href="http://www.ifcj.org/site/PageNavigator/sfi_issues" class="issues"><span>Issues</span></a>
<ul id="bullets2">
<?php wp_list_pages("orderby=name&order=ASC&child_of=205&title_li="); ?>
</ul>
</li>
<li><a href="http://www.ifcj.org/site/PageNavigator/sfi_takeaction" class="takeaction"><span>Take Action Now</span></a></li>
</ul>
</div>
<?php } else { ?>
What I would like to do is add a class of "active_page" to the links that get generated by : <?php wp_list_pages("orderby=name&order=ASC&child_of=205&title_li="); ?>
I have tried jQuery but for some reason the class does not get applied to the a tag.
This is my jQuery code.
$("ul#bullets2 li.current_page_item a").addClass("active_page");
Anyone have any other ideas as to how I can do this.
Thanks