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/

    on April 1, 2022.
    on April 9, 2022.
    on April 12, 2022.
    on April 12, 2022.
    on April 14, 2022.
    on April 15, 2022.
    on April 15, 2022.

    Your website is really cool and this is a great inspiring article. heavy hitters

    on April 26, 2022.
    on April 29, 2022.
    3 days ago.

    Positive site, where did u come up with the information on this posting? I’m pleased I discovered it though, ill be checking back soon to find out what additional posts you include. brunch in atlanta with bottomless mimosas

    2 days ago.
    1 day ago.
    1 day ago.
    19 hours ago.
    22 mins ago.
    Reply