• Hi, I use OceanWP Maria.
    I have banned comments, but the 0 COMMENTS field appears, and it seems that no one wants to comment, and instead I am the one who banned it.
    I ask you: is it possible not to display the writing?
    thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes, it’s possible to hide the “0 COMMENTS” field in your OceanWP theme. You can do this by adding a small piece of custom CSS to your theme. Here’s how:

    1. Go to your WordPress Dashboard.
    2. Navigate to: Appearance > Customize.
    3. Click on: Additional CSS.
    4. Add the following CSS code:

    css

    .comments-area { display: none; }

    This CSS will hide the comments section, including the “0 COMMENTS” field, from being displayed on your pages.

    After adding this, the “0 COMMENTS” message should no longer appear. If this doesn’t work for your specific layout, let me know, and I can help adjust the code.

    4o

    Thread Starter stanis2004

    (@stanis2004)

    thanks, it’s better: in some posts it says ‘comments disabled’ in others it remained ‘0 comments’.
    But it would be better not to see either one or the other.

    Hello @stanis2004,

    Thank you for reaching out,
    Please put the CSS below in Customizing > Custom CSS/JS > CSS Code:

    #blog-entries .blog-entry-comments {
        display: none;
    }

    Please read this link for more information about the CSS/JS code on the customizer: https://docs.oceanwp.org/article/354-add-custom-css-and-js-to-your-website.

    Note: If you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, remember to click on the regenerate all assets file and data in Elementor > Tools(if you have Elementor).

    I hope that helps.
    Best Regards

    Thread Starter stanis2004

    (@stanis2004)

    Perfect! Thank you!!
    That’s what I wanted.

    Best Regards

    You’re most welcome.
    I’m glad that the solution was helpful.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.