Title: Styling Navigation Dynamically
Last modified: August 20, 2016

---

# Styling Navigation Dynamically

 *  [jon-owc](https://wordpress.org/support/users/jon-owc/)
 * (@jon-owc)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/styling-navigation-dynamically/)
 * Hey guys,
 * Weather is wonderful over here, hopefully you can say the same ;). I’m trying
   to dynamically style my navigation bar. Here is the goal:
 * If the current page is on the navigation it is styled. The rest of the links 
   are not. **Accomplished**
 * If the current page is not on the navigation, I want to style the Home page button
   instead. **I’m struggling!**
 * A nudge in the right direction would be greatly appreciated!

Viewing 1 replies (of 1 total)

 *  Thread Starter [jon-owc](https://wordpress.org/support/users/jon-owc/)
 * (@jon-owc)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/styling-navigation-dynamically/#post-2909503)
 * I have figured this out myself. The code isn’t amazingly pretty or cutting edge(
   thanks codex for the inspiration). Anyways here’s a link for those who might 
   be curious or find it useful:
 * [http://pastebin.com/C8fEyfiM](http://pastebin.com/C8fEyfiM)

Viewing 1 replies (of 1 total)

The topic ‘Styling Navigation Dynamically’ is closed to new replies.

## Tags

 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)

 * 1 reply
 * 1 participant
 * Last reply from: [jon-owc](https://wordpress.org/support/users/jon-owc/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/styling-navigation-dynamically/#post-2909503)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
