• I apologize if this general design question is in the wrong forum but since the forum change I am having difficulty with determining what goes where.

    My question is: In the recent comments widget, for obvious reasons I don’t want the admin username visible and I am able to hide the comment author with css but cannot find anywhere to hide the word “on” in css. Can someone help me to hide or remove the word “on”? See screenshot.

    screenshot

    • This topic was modified 7 years, 11 months ago by nootkan. Reason: changed screenshot
Viewing 4 replies - 1 through 4 (of 4 total)
  • you can remove recent comments from WordPress widgets.

    Thread Starter nootkan

    (@nootkan)

    Thanks for your reply. I don’t want to remove the recent comments widget, only the word “on” from the output in the sidebar.

    dirty way is to hide it using CSS…

    maybe better approach would be to create your own widget, actually just copy WordPress default recent comments widget code from class-wp-widget-recent-comments.php to themes functions.php for example, rename class name and widget display name (line 31 original file) and then change output to whatever you like… “on” word is on line 116 in original file…

    after that you need of course register your new widget using

    
    add_action( 'widgets_init', function(){
    	register_widget( 'My_Widget_New_Name' );
    });

    and then you should have a new widget in WordPress admin area and you can control the output…

    Thread Starter nootkan

    (@nootkan)

    DanijelSVK, thanks for the tip. I’ll give a try and let you know how it worked out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Recent Comments Widget’ is closed to new replies.