1. Home
  2. Docs
  3. FAQ’s
  4. How can I hide comments on Business Directory pages?

How can I hide comments on Business Directory pages?

Deactivate post meta data (comments, author, date, etc.) on Directory pages

Turn off comments on Business Directory pages

Post meta data refers to the author’s name, date and/or numbers of comments that you sometimes see below the title of your posts.

Individual listings for your Directory are custom post types and are typically using the post layout that has been defined by your theme. Whether or not comments and other meta data are enabled on posts is controlled by either WordPress or the theme.

If you are using a Chamber Dashboard theme, the meta data has already been set not to show.

3rd-Party Theme Options to Hide Post Meta Data

If you are using a 3rd party theme, you may need to do a bit of investigation. Between your theme and WordPress settings, there may be more than one option for turning comments off.

Sitewide – from your WordPress dashboard, go to Settings >> Discussion and UNcheck the option to let people comment on new articles.

On individual pages – open the page/post scroll down below the Edit screen to Discussion Tab and UNcheck the option to allow comments and pingbacks.

Check the Customizer – go to Appearance >> Customizer. Check all the panels to see if there’s an option to hide post meta data.

NOTE: Every theme is different. You’ll want to check the settings for the specific theme you are using to see if there are settings related to comments. Hint: most themes offer some type of documentation, which is a great place to start!

Use a plugin to hide post meta data

There are several plugins in the WordPress Plugin Directory that you can use to hide the meta data of your post. To find one:

  • From your WordPress dashboard, go to Plugins >> Add New.
  • Do a search for hide post meta.
  • Install the best plugin for your needs, keeping in mind that not all plugins work with all themes. You may need to try more than one.

Remove post meta data manually

  • From your WordPress dashboard, go to Appearance >> Customize >> Additional CSS.
  • Here you can add a bit of CSS to hide the meta data.
  • Paste the following code inside the box provided: .entry-meta .posted-on { display: none; }
  • Click ‘publish’ to add the code to your site.
  • If this does not hide all of the meta data, you may need to add additional selectors, for example: .byline, .cat-links
  • The date, author and category information should now be hidden. You may need to refresh the front end of your WordPress website to confirm.
Was this article helpful to you? Yes 1 No