AI Assistant
Notifications
Clear all

[Solved] How can i set a specific class id

4 Posts
2 Users
1 Reactions
1,075 Views
xfok
Posts: 86
 xfok
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@xfok)
Estimable Member
Joined: 7 years ago
[#12765]

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

 

 Schermata 2020 03 25 alle 11.25.40

3 Replies
Alvina
Posts: 1860
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@alvina)
Member
Joined: 6 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: 7 years ago

Estimable Member
Posts: 86
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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

 

 Schermata 2020 03 25 alle 22.43.08

Alvina
Moderator
(@alvina)
Joined: 6 years ago

Member
Posts: 1860
Alvina
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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.

 

 


Share: