Comments Element
As part of Avada Layouts, we have created a series of Dynamic Elements that help generate content in the Content Layout Section of a Layout. These are called Layout Elements. In this document, we look at the Comments Element.
How To Use The Comments Element
When you go to add an Element in a Content Layout Section, the Element dialog opens in a new tab called Layout Elements. This is where you will find the Comments Element. This is a simple Element, which allows you to place the comment section anywhere in a Content Layout Section in any Layout. This would most commonly be used in a Single Post layout.
The Comments Element includes any comments made, and the Leave A Comment section, allowing people to make a comment. It will not display if comments are not allowed for that post or page.
The Comments Element can be placed anywhere in your Layout, and will dynamically pull the Comments area into the page, based on the Conditions set in the Layout. You can also use the full range of Design Elements when building your Layout.
See below for an example of the Comments Element on a post on the Fitness Demo. Follow this link for a live example.
Element Options
Location: The edit screen within each Element.
You can deploy the Layout Elements only once within each Layout. Within each of the Elements, you will see a tab or tabs that house an array of options that make it possible for you to configure each Element independently, and greatly enhance your flexibility and creative options.
General Tab
Comments Template Order – Set if comments or comments form should be displayed first.
Show Headings – Choose to show or hide headings
HTML Heading Size –Â Choose the size of the HTML heading that should be used, h1-h6.
Comment Separator Border Size – Controls the border size of the separators. In pixels. Default currently set to 1. Reset to default.Using default value.
Comment Separator Border Color – Controls the border color of the separators. Leave empty for default value of rgba(40,45,51,0.1). Reset to default.Using default value.
Comment Indent – Set left padding for child comments. In pixels.
Comment Avatar – Make a section for user comment avatar.
Margin – In pixels or percentage, ex: 10px or 10%.
Element Visibility – Allows you to control the Element’s visibility. Choose one or more between Small Screen, Medium Screen, or Large Screen.
CSS Class – Allows you to add a class for the Element.
CSS ID – Allows you to add an ID for the Element.
Extras Tab
Animation Type – Controls the element’s animation type. Choose between None, Bounce, Fade, Flash, Rubberband, Shake, Slide, or Zoom.
Direction of Animation – Controls the direction of animation on the Element. Choose between Top, Right, Bottom, Left, or Static.
Speed of Animation – Controls the speed of animation on the Element. Choose between 0.1 to 1.
Offset of Animation – Controls when the animation will start. Choose between Default, Top of element hits bottom of viewport, Top of element hits middle of viewport, or Bottom of element enters viewport.
Global Options
Layout Elements do not have any Global Options.