AI Assistant
Notifications
Clear all

Widget: change icons to text

2 Posts
2 Users
0 Reactions
2,091 Views
Posts: 1
Customer
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
(@derek-costa)
Member
Joined: 6 years ago
[#4676]

I am building out a site, and I would like to experiment with two different looks for the widget:

1) Changing the tab icons to text (I cannot find where the icons are defined to add the text)

2) Shrinking the icons down a bit, and having them to the left of the descriptor text

 

I found: https://gvectors.com/forum/wpdiscuz-widgets/making-the-icons-smaller/#post-2348

The direction provided there had no impact on the sizing of the icons.

 

 

Thanks!


1 Reply
Elvina
Posts: 1403
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
(@elvina)
Support
Joined: 7 years ago
Posted by: @derek-costa

Changing the tab icons to text (I cannot find where the icons are defined to add the text)

Please follow the steps below:

1. Navigate to Dashboard > Comments > Settings > Addons > Widgets admin page, put the following CSS code in the "Widget custom CSS" textarea:

div#widget-comments-container li a i:before{
display:none !important;
}

div#widget-comments-container li a p{
font-size:10px;
}

2. Put the following JS codes in the active theme js files:

jQuery("div#widget-comments-container .most-voted a i").html("<p>Most Voted Comments</p>");

jQuery("div#widget-comments-container .most-active a i").html("<p>Active Comments Threads</p>");

jQuery("div#widget-comments-container .popular-posts a i").html("<p>Most Commented Posts</p>");

jQuery("div#widget-comments-container .popular-authors a i").html("<p>Most Active Commenters</p>");

jQuery("div#widget-comments-container .wpd-wid-recent-comments a i").html("<p>Resent Comments</p>");

Important: We don't recommend you to change the icons to the text. If you make those changes you will have to write a large number of CSS codes to display the tabs title correctly (change width, height, font-size, etc.).   

Shrinking the icons down a bit, and having them to the left of the descriptor text

It seems there is a CSS conflict. Please leave some example URL to allow us to check the issue.


Reply
Share:
Scroll to top