Comments?

Asked on August 11, 2016 in Customization.

Hey guys! I’m new to Layers and WordPress. Using Layers I created a “One Pager” which is something like a portfolio.. Now my question is, is there any way to add comments? I want the visitors of the site to be able to post comments. They don’t have to be registered users or anything.. How can I do this?

Thanks in advance for the help!

Reply
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on August 15, 2016.

    Hi there,

    Currently Comments are not included in the Layers page template. I recommend installing something like  Facebook comments which allows you to put a shortcode on the page using the Content widget. You otherwise need a child theme and a custom function in the functions.php that adds a call to the comments template using an action hook. Example:

    add_action(‘after_layers_builder_widgets‘, ‘add_layers_page_comments’);
    function add_layers_page_comments(){
    comments_template();
    }

    Since the builder template is not designed for comments, I am not sure how this will look.

    The following guide walks you through setting up a child theme (you only need to go as far as creating the files and activating it)

    https://docs.layerswp.com/theming/

    Reply