Notifications
Clear all

wpForo 1.x.x [Solved] Changing ONLY the Background color of the Sticky Topics?

7 Posts
4 Users
3 Reactions
1,191 Views
Posts: 109
Topic starter
(@beyondforce)
Estimable Member
Joined: 6 years ago

Hey Guys,

I want to change the background color of the Sticky Topics in order to highlight it.

Can someone help with that?

Thanks.

Cheers / Ben.

6 Replies
Posts: 533
(@central4allgmail-com)
Prominent Member
Joined: 6 years ago

Nice idea !

Posts: 21
(@power505)
Eminent Member
Joined: 6 years ago

Looking for this too. Did anyone found any CSS solution for this?

Sofy
Posts: 4772
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @beyondforce,  @central4allgmail-com, @power505

try the following JS code, add it in you theme js files and check again. In this case, the sticky topic will change the background color in the topic list: 

jQuery( "i.fa-thumbtack" ).parent().parent().parent().css( "background-color", "#f1d5d5" );
2 Replies
(@beyondforce)
Joined: 6 years ago

Estimable Member
Posts: 109

Hi @Sofy,

Could you please be more specific about the JS file? Are you talking about the WP Theme or the WPforo Theme?

 

Thanks.

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

I mean WP active theme. 

Posts: 21
(@power505)
Eminent Member
Joined: 6 years ago

@Sofy it works, thanks for the great solution!