KNOWNHOST KNOWLEDGE BASE

Hosting Question? Find the Solution - Browse our Guides, Articles, and How-To's

How to Stop WordPress Comments from Appearing on Jetpack Carousel?

Category: WordPress
Tags: # # # #

Jetpack for WordPress is powerful. It has loads of features, many of which you either don’t want, won’t need or will want to modify to fit your objectives perfectly.

One such feature is the Carousel, which is a lovely way of handling multiple images. However, it may be the case that you want Carousel without comments appearing.

There are two primary methods of disabling Carousel comments:

  1. Editing the plugin behavior by editing the code behind the scenes
  2. Editing the CSS surrounding Carousel behavior

There are some drawbacks with option 1, namely updates to the plugin may nuke the changes you’ve made, rendering the behavior to either no longer be present, or no longer behave as intended.

Following the Customizer guide on adding CSS to perform other functions, go to:

  Appearance -> Customize

Then scroll down to Additional CSS.

To stop comments on Jetpack carousel, insert this code in the box:

  /* Jetpack: Carousel
  ****************************************** /
  /* Hide Comment Form & Link */
  #jp-carousel-comment-form-container, /* Form */
  div.jp-carousel-buttons a.jp-carousel-commentlink, /* Link */
  #jp-carousel-comments-loading /* Loading Comments text */ {
    display: none !important;
  }
  /* Remove Padding from Link Area */
  .jp-carousel-buttons {
    padding: 0 !important;
  }

The above code is thanks to WPSmackdown:

Disable Comments Jetpack Carousel

Note: If this fails to work, it could be that your theme has different CSS classes for that section. You may need to inspect element on that section of the page to find the class, then substitute it for the carousel div or a portion above.

Conclusion

Have a WordPress website? Check out our Managed WordPress Hosting and see if we are a good fit for you. KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you should you need our assistance. You’re not using KnownHost for the best webhosting experience? Well, why not?