How to change the colour of the “edit profile” and “log out” links in Divi comments module

by Jamie Dąbrowiecki | 22nd April 2023 | Web Design & Dev | 0 comments

Featured image by Jamie Dąbrowiecki

In this guide, I’ll show you how you can quickly and easily change the colour and styling of the “edit profile” and “log out” links in the Divi comment area.

By default, the links in the Divi comment area are set as the Theme Accent Colour (found in Appearance → Customise → General Settings → Layout Settings). This can be problematic when the background colour of your comments section is the same colour – this is a problem I discovered when redesigning this website at the start of 2023.

Unfortunately, the Divi Comments module does not have any built-in settings or toggles to adjust the appearance of these links, but thankfully the solution is a just a few simple lines of CSS.

Step 1: Add custom CSS to Divi’s custom CSS area

This is a simple one-step task. Divi has an area in the theme settings for custom CSS – this means that you don’t need to edit any theme files if you are not comfortable doing so.

  1. Go to Divi → Theme Options
  2. Scroll to the bottom of this page and find the Custom CSS box
  3. Copy and paste the CSS code snippet found below
  4. Click the green Save Changes button

The code snippet

This is the snippet of CSS you will want to copy and paste:

/*** Change colour of edit profile and log out links in comments area ***/
#comment-wrap p.logged-in-as a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

There are three CSS properties in the snippet above. You do not necessarily need all of them if you don’t want them, and you are not limited to just those three either.

That’s all there is to it! If you used the exact snippet above, you’d see something like this:

I hope you found this guide useful and were able to achieve what you were aiming for. Feel free to ask any questions in the comments section below or even suggest any Divi guides you may want me to write.

Post author

Jamie Dąbrowiecki

I am a professional website designer and developer. When I'm not creating websites, I enjoy playing video games, watching my favourite football team Manchester United and drinking tea.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.