Bibiano Wenceslao
Forum Replies Created
-
Oh I get it now. This was a project that I continued upon so I wasn’t really sure what the previous handler did.
Thanks for the tip and as always for the great plugin!
- This reply was modified 8 years, 11 months ago by Bibiano Wenceslao. Reason: Edit as resolved
So fast! 🙂 I just emailed the link of the page to the address you mentioned. Thanks!
It it helps, Google search has cached a working version of the page before http://webcache.googleusercontent.com/search?q=cache:0zbSoqtyT-oJ:www.mystarresumes.com/services/+&cd=1&hl=en&ct=clnk&gl=ph
- This reply was modified 8 years, 11 months ago by Bibiano Wenceslao. Reason: Additional info
Forum: Themes and Templates
In reply to: [Responsive] Highlight Parent Menu Item while in Child Page@wpyogi – I’m sorry about what I did mate. I’m heeding your advice and will avoid doing the same thing again.
Thanks!
Forum: Themes and Templates
In reply to: [Responsive] Highlight Parent Menu Item while in Child PageI just insert the following code in the theme’s footer.php file right before the closing body tag </body>.
<!-- Highlight parent page link when on child page --> <?php if (is_page()) { // displaying a child page ?> <script type="text/javascript"> jQuery("li.current-page-ancestor").addClass('current-menu-item'); </script> <?php } ?>Simply put, the code adds another native WordPress nav li class that makes the link of the current page active.
For a detailed explanation of how this works I wrote a short post here; [link moderated]
Hope that helps!
Here’s what worked for me. Place the following PHP code in your
footer.phpfile right before the closing body tag</body>.<?php if (is_single() || is_category() || is_tag() || is_search()) { // displaying a single blog post or a blog archive ?> <script type="text/javascript"> jQuery("li.current_page_parent").addClass('current-menu-item'); </script> <?php } ?>For further explanation, I wrote a short piece here about it here: Keep “Blog” link highlighted when viewing a single post