1. Home
  2. ReHub Theme
  3. Useful code snippets
  4. How to add comments on pages

How to add comments on pages

By default, we deactivated comments on all pages. We did this because wordpress uses pages for many system functions. For example, for cart pages, orders, custom registration pages, membership, profiles, homepage, blog archive pages, etc. Most of our buyers don’t know that they can disable comments on such pages and also many pages are created automatically by plugins, so, we think that comments are totally useless on pages. Because you should use them on posts. If you still want to use pages as posts and have comments, add next code

<?php comments_template(); ?>

to file page.php

before

</article>

If you use page for visual layout page template, add the same for file visual_builder.php

How to customize your theme