single.php and Categories
-
On my single.php page I want to have the tab of the article’s corresponding category highlighted.
For example: https://embeddedcomputingsystems.com/
If the article is from “Boards” (the second tab next to “Home”) then I’d like the Boards tab to be in the active state. I’m am guessing I’d use some sort of php if statement, like if category=3 then class=”active” but am unsure of how to write this. I know nothing about php!
Can someone please help?
Thanks,
Jon
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘single.php and Categories’ is closed to new replies.