Notifications
Clear all

[Solved] Feature request / adding icon to the date

3 Posts
2 Users
1 Reactions
971 Views
Posts: 21
Customer
Topic starter
(@julia-termeer)
Member
Joined: 5 years ago

Hi there,

I guess this is only a small feature request that you can fast add to this widget:

1. Make it possible that you can adjust the font-size of the date when the comment has posted

2. Add an icon (like clock or calendar) to this date

 

Screen Shot 2020 03 27 at 3.43.08 PM
2 Replies
Astghik
Posts: 6153
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi @julia-termeer,

Thank you for the suggestion. 

You can do both using the custom CSS and JS codes.

1. Make it possible that you can adjust the font-size of the date when the comment has posted

To get it resolved, just put the CSS code in the "Widget custom CSS" textarea, located in the Dashboard > comments > Settings > Addons > Widgets admin page. 

.popular-comment-author-body i+div, .popular-comment-author-body a+div {
font-size: 12px !important;
}

2. Add an icon (like clock or calendar) to this date

In case, if you'd like to add a calendar icon use the following JS code in the active theme JS files. 

jQuery(".popular-comment-author-body a+div").before("<i class='fas fa-calendar-alt'></i>");

Here is an instruction: https://www.collectiveray.com/add-javascript-to-wordpress

Posts: 21
Customer
Topic starter
(@julia-termeer)
Member
Joined: 5 years ago

Thank you =)

Share:
Scroll to top