How to Show Divi’s Comments Module to Logged-In Users Only

by | Sep 12, 2023 | Etcetera | 0 comments

The feedback segment of any weblog could be a position of serious dialogue. On the other hand, there might come a time when you wish to have to construct your group on-line. With the Divi Condition Options characteristic, we will save you customers now not a part of your weblog from commenting on posts. This may paintings for a members-only group or as a perk of a club web site.

On this instructional, we’ll display you find out how to show Divi’s Comments Module to logged-in customers solely, this may help you immediately engage along with your group! We’ll use the Film Lab Blog Post Template for the bottom of this Divi instructional.

Find out how to Create a Individuals-Most effective Remark Phase

Divi’s Situation characteristic permits us to make a choice a suite of parameters with which modules, rows, columns, and sections can engage. For our case, we’ll need to set the show stipulations in keeping with a consumer’s logged-in standing. Right here’s a abstract of the stairs we’ll take on this instructional to succeed in our members-only remark segment:

  1. Add your weblog submit template to the Divi Theme Builder (or create your weblog template!)
  2. Create your members-only remark segment containing a Login Module
  3. Turn on Show Prerequisites for the row containing the Login Module
  4. Turn on Show Prerequisites for the row containing the Remark Module
  5. Save and take a look at the template in an incognito window

Earlier than: A Unfastened-for-All All Remark Phase

That is what the Movie Lab Weblog Put up Template looks as if with out the members-only remark segment. Understand that any one can land on a weblog submit, learn it, and engage with the feedback segment.

How to show Divi's Comments Module to logged in users only, after login

After: A Individuals Most effective Remark Phase

The use of Divi’s Situation Choices, we will now display a Login Module. As soon as a consumer has logged in, they are able to engage with the Remark Module. If they aren’t a logged-in consumer, they can not see or publish a remark.

How to show Divi's Comments Module to logged in users only, before login

Putting in the Weblog Put up Template

Earlier than we begin growing our members-only remark segment, we want to obtain the template we’ll use. You’ll obtain the Movie Lab Weblog Put up Template here.

See also  The way to Upload a Background Symbol to Your Divi Header

Download the Film Lab Blog Post Template from the Divi blog

Cross to Divi Theme Builder

To add the template, navigate to the Divi Theme Builder within the backend of your WordPress website online.

Getting started with the Divi Conference Layout Pack

Add Web page Template

Then, within the best correct nook, you’ll see an icon with two arrows. Click on at the icon.

Importing the Header and Footer Layout into the Divi Theme Buidler

Navigate to the import tab, add the JSON report you have to obtain on this submit, and click on ‘Import Divi Theme Builder Templates.’

Import settings for the header and footer layout pack

Save Divi Theme Builder Adjustments

While you’ve uploaded the report, you’ll understand a brand new template with a brand new frame space assigned to All Posts. Save the Divi Theme Builder adjustments once you wish to have the template activated.

Save the imported blog post layout within the Divi Theme Builder

Editing The Template

Open Put up Template

Now that our template is put in and assigned to all of the weblog posts on our web site, we will start construction our members-only remark segment. We begin through opening the template.

Begin editing the blog post body template within the Divi Builder

Upload a New Row for the Login Module

Upload a brand new row inside the similar segment because the Remark Module of this template. Transfer to wireframe view to make it more uncomplicated. Then, click on the golf green plus icon so as to add a brand new row above the row containing the Remark Module.

Add new for for Login Module

Subsequent, we’re going so as to add one column to the row.

Add a one column layout to the newly added row

Upload Login Module

In our new row, we’re going so as to add a Login Module. We would like customers to log in to our website online to get entry to our members-only remark segment. Scroll during the Module modal field until you spot the

Add login module as we start to create our members only comment section

Upload Textual content to Login Module

Let’s upload a identify to the Login Module. We’ll additionally use this identify to invite customers to log in earlier than gaining access to our feedback segment.

Add title to Login Module

Taste Login Module

Now, we can taste our newly added Login Module to check the branding of the Movie Lab Weblog Template.

Surroundings the Background of the Login Module

Click on at the paint bucket icon. This may increasingly upload a forged fill colour of #ff4125 to the module’s background. Subsequent, click on at the Use Background Colour toggle.

Add background color to Login Module for our members only comment section

Background

  • Background Colour: #ff4125
  • Use Background Colour: Sure

Styling the Fields

For the Fields, we can use the similar colour because the segment for its background with black textual content.

Start styling the fields of the Login Module

Fields: Background and Textual content Styling

  • Fields Background Colour: #eae9e4
  • Fields Textual content Colour: #000000
  • Fields Focal point Background Colour: #eae9e4
  • Fields Focal point Textual content Colour: #000000

We can additionally give the fields a border and no rounded corners. This may increasingly imitate the styling of the Remark Module.

Login fields border styling

Fields: Background and Textual content Styling

  • Fields Rounded Corners: 0
  • Fields Border Kinds: All
  • Fields Border Width: 1px
  • Fields Border Colour: #000000
  • Fields Border Taste: Cast

Styling the Name

The identify will use the similar font used all the way through the template and might be white.

See also  How to Add a Dynamic Copyright Year to Your Divi Footer (Automatically Updated)

Styling the title text of the Login Module

Name Textual content

  • Name Heading Textual content: H2
  • Name Font: Mulish
  • Name Textual content Colour: #ffffff

Understand that we upload responsive sizes for the identify to seem excellent on other display screen sizes.

Setting the title text font sizes for the Login Module

Name Textual content: Font Dimension

  • Name Textual content Font Dimension (Desktop): 64px
  • Name Textual content Font Dimension (Pill): 48px
  • Name Textual content Font Dimension (Mobiler): 48px

Styling the Button

To avoid wasting time, reproduction and paste the button settings from the Remark Module to our Login Module. Click on at the settings icon for the Remark Module.

Copying the button settings from the comment module

Navigate to the Design tab. Scroll right down to the Button tab. Proper-click at the button tab and click on Reproduction Button Kinds.

Copying the button settings -again -from the comment module

Later on, go out the Remark Module. Input the Login Module through clicking at the tools icon.

Enter Login Module settings

Once more, click on the Design tab and scroll right down to the Button tab. Subsequent, right-click and choose Paste Button Kinds. Voila! The button appears to be like on the subject of the button throughout the Remark Module.

Paste Button Styles from Comment Module to Login Module

Now, our Login Module’s button intently fits the styling of the Remark Module buttons. Yay us!

Login module Button styling

Observe Show Situation to Login Module Row

With our Login Module styled, we will now put our first Show Situation into position. The Show Situation is important for making a members-only remark segment. Divi supplies more than a few choices throughout the Show Situation characteristic that help in making this conceivable. Click on at the tools icon to go into the settings for the row containing the Login Module.

Enter the row settings for the row with the Login Module

Click on at the Complicated tab throughout the row settings, then click on the Prerequisites tab. Then, click on at the plus icon.

Preparing to activate the Display Conditions for our members only comment section

Whilst you click on at the plus icon, you’ll have many choices for what situation you’ll show (or disguise) this row. Scroll right down to Person Standing, after which click on Logged In Standing.

Activating logged in status display condition for the Login Module row

As soon as this is completed, we’ll obtain any other modal field. Inside of this modal field, we need to click on at the dropdown that claims, Person is Logged In and alternate that to Person is Logged Out. That is what contributes to our members-only remark segment. As we would like other people to be web site contributors, they should have a sound login credential to get entry to our feedback segment. In the event that they don’t have legitimate credentials, they are able to’t get entry to the remark segment of our web site.

Display this row only if the user is logged out

Show Prerequisites

  • Show Most effective If: Person is Logged Out
  • Permit Situation: Sure

While you’ve decided on your Show Situation, make certain that you save your adjustments through clicking at the inexperienced test button of the modal field. Pay attention to the notification referring to caching plugins.

Save display conditions settings in preparation for our members only comment section

Activating Show Prerequisites for the New Individuals Most effective Remark Phase

The overall piece of this instructional is putting in place the Show Situation for the row containing the Remark Module. To do that, click on the tools icon to get entry to the row settings.

See also  6 Best Keyword Tracking Tools for SEO

Editing the row containing the Comment Module to create our members only comment section

Just like the row containing the Login Module, as soon as within the Row Settings, we’ll click on at the Complicated tab, then click on the Prerequisites tab and press the plus icon so as to add our Show Situation.

Activating the Display Condition for the Comment Module row

For the row containing the Remark Module, as a substitute of exhibiting provided that the consumer is logged out, we would like it to show provided that the consumer is logged in.

Display Conditions for the row containing the Comments Module for our members only comment section

A Completed Individuals Most effective Remark Phase

Now that we’ve added Show Prerequisites to each the Remark Module and the row with the Login Module, we will do a snappy take a look at. Seek advice from a weblog submit for your web site in an incognito or non-public surfing window.

Our members only comment section in a private browser

We use a personal browser or incognito window to check our show stipulations for the reason that window will quickly log us out of our website online whilst surfing inside it. Whilst you return to common surfing and also you *are* logged into your website online, you must see your remark segment. On the other hand, you’ll be able to log from your WordPress website online to peer your completed paintings! Whilst we did this instructional on a Remark Module, this can also be implemented to any module, row, column, or segment natively inside Divi; no further plugin is wanted. Take a little time to mix’n’match the other show settings and spot what you are making.

In Conclusion

Making a group for your WordPress website online lets you deepen the believe of those that use your website online essentially the most. Some way to try this is through making a members-only feedback segment that permits contributors to have interaction with every different simply. Divi has integrated equipment and lines that make doing this a breeze. With Divi’s local Show Prerequisites, permitting your customers to just engage with every different is conceivable. Moreover, you’ll be able to simply taste your Feedback Module the usage of the Design tab and Divi’s whole modifying equipment. To construct an agile non-public group, you don’t want to set up a club plugin whilst you use Divi. Through activating positive options in Divi’s core, you’ll be able to create a logged-in consumer remark segment, improve your on-line group, and stay your WordPress website online mild and agile. Earlier than attaining for a plugin so as to add easy club options in your website online, imagine testing Divi’s Show Prerequisites for facets of your website online nowadays.

The submit How to Show Divi’s Comments Module to Logged-In Users Only gave the impression first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!