Hide Comments in the Recent Posts Widget

This is a Developer Level doc.

If you're unfamiliar with CSS and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.

If you are using OceanWP's »Recent Posts widget (part of the Ocean Extra plugin, Appearance > Widgets) in a sidebar or footer widget area, and wish to hide the comments, use the following CSS snippet:

.oceanwp-recent-posts .recent-posts-info .sep {
display: none;
}

.oceanwp-recent-posts .recent-posts-comments a {
display: none;
}

All CSS snippets should be added via a child theme's style.css file or using the built-in Custom CSS panel.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.