wordpress navigation problem
Posted 30 October 2010 - 08:26 AM
So, when i am in the second page and click the read more link for a product it shows the complete post. (single.php) But navigation bar shows that i am in the first page which is the default page as i said.
The question is how can i make the nav bar be highlighted the second page when i read one of the second page's product post?
I hope you understand what i am trying to tell
Posted 30 October 2010 - 10:02 AM
See my site to understand what i mean.
and go to the tutorial page and view a post to see what's happening to the nav bar.
Posted 30 October 2010 - 10:59 AM
Posted 30 October 2010 - 11:23 AM
The only trick i came up is by using jquery.
i check the category that the post belongs and if it is in the second page i use jquery to remove the class .current_page_item from the blog page and add it to the econd page. It does the trick although it has a little lag until the page is full loaded...