Notifications
Clear all

[Solved] How can i set a specific class id

4 Posts
2 Users
1 Likes
530 Views
xfok
Posts: 78
 xfok
Topic starter
(@xfok)
Estimable Member
Joined: 5 years ago

How can i set a specific class id for example i will set resolved topic id class id. Now its all 'wpf-status-title'

 

3 Replies
Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 4 years ago

Hi @xemanuelex,

Please leave the example URL to allow us to check it.

Also please try to explain in other words what exactly you want to change.

2 Replies
xfok
 xfok
(@xfok)
Joined: 5 years ago

Estimable Member
Posts: 78

@alvina for example i will set a custom class id for custom css to [SOLVED] tag question. 

 

Alvina
Moderator
(@alvina)
Joined: 4 years ago

Member
Posts: 1869

Hi @xemanuelex,

In case if you just want to change the class on the resolved topics, please use the following JS code. The code should be pasted in the current active theme functions.php file.

jQuery( "span" ).removeClass( "wpf-status-title" ).addClass( "new-class" );

The red marked value is the name of the new class, you can change it us you want.

Don't forget to delete all caches and press CTRL+F5(twice) on the frontend before checking.