CSS for a conditional info box
-
As you can see on the page linked to this post, in the sidebar of my blog i have three info boxes at the top that indicate where a blog post originated. My intention is that they will display only if category = x, y, or z. On the advice of ChatGPT I added an additional CSS class to each info box (i think). I dont know CSS yet. The line is
is_category(x)
where x is the number of the category id (i think tag_id is actual name of the field)
Can someone confirm this was the correct way to approach this? I got this to work one time, then it stopped working and now all three info boxes display.
Thanks for your help.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CSS for a conditional info box’ is closed to new replies.