topic.php so first post has unique css
-
I’m looking at the groups/single/forum/topic.php file and trying to figure out how to get the first post to have a unique css.
Idea
Surround area with div tag and unique id then create the id in my child theme’s css.
Challenge
In placing the div tag above the li tag, all the posts are changed to the new css tag. This makes sense because of the while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); happening in that loop.
So, how do I get just the first post to be unique? After all, this site has an alternating style … how is that achieved? How can that be replicated in a child theme?
- The topic ‘topic.php so first post has unique css’ is closed to new replies.