Advertisement
fauzanjeg

Add Clock Icon after Reading Time

Apr 15th, 2021
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.36 KB | None | 0 0
  1. /* Add Clock Icon after Reading Time */
  2. (function($) {
  3.     $(document).ready(function() {
  4.         let base = $('.jeg_meta_reading_time');
  5.         let text = base.find('span').text();
  6.         base.html(text + '<i class="fa fa-clock-o" aria-hidden="true"></i>'); /* For Font Awesome 4 */
  7.         // base.html(text + '<i class="fas fa-clock"></i>'); /* For Font Awesome 6 */
  8.     });
  9. }(jQuery));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement