# Need help fixing the CSS for comments below WP post

**URL:** https://meta.discourse.org/t/need-help-fixing-the-css-for-comments-below-wp-post/149296
**Category:** WordPress
**Created:** [25 april 2020 om 21:23 UTC](https://meta.discourse.org/t/need-help-fixing-the-css-for-comments-below-wp-post/149296 "2020-04-25T21:23:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![steelmaiden](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steelmaiden/32/125527_2.png) [@steelmaiden](https://meta.discourse.org/u/steelmaiden)
#### Post date: [25 april 2020 om 21:23 UTC](https://meta.discourse.org/t/need-help-fixing-the-css-for-comments-below-wp-post/149296/1 "2020-04-25T21:23:42Z")

</div>

So i connected the [WP discourse](https://github.com/discourse/wp-discourse) plugin with my forum but the comments below posts look pretty ugly.

Example:

> **[Kako pobijediti Facebook algoritam - 11 savjeta kako do većeg dosega - GeeK.hr](https://geek.hr/clanak/kako-pobijediti-facebook-algoritam/#comments)**
>
> Želite ostvariti veći doseg na Facebooku? Zanima vas kako funkcionira Facebook algoritam i na koji način možete nadmudriti taj algoritam? Možete li uz male

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/0/60101b42c1884342143f2d50ad1a0e2a779e884a.png)

Any suggestions on how to modify the CSS properly so the comments look decent would be well appreciated!

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [25 april 2020 om 22:39 UTC](https://meta.discourse.org/t/need-help-fixing-the-css-for-comments-below-wp-post/149296/2 "2020-04-25T22:39:19Z")

</div>

What about this?

```css
.discourse-comments-area {
    padding-top: 15px;
}
.discourse-comments-title {
    font-size: 2em;
}
.comment {
    padding-top: 30px;
    min-height: 70px;
}
.comment-body {
    display: flex;
}
.comment-meta {
    display: flex;
    position: absolute;
    width: 100%;
    
}
.comment-metadata {
    margin-left: 5px;
    margin-top: 2px;
    color: #aaa;
    &:before {
        content: "/";
    }
}
.comment-author {
    display: flex;
    .fn {
        font-size: 1.4em;
        margin-left: 15px;
    }
}
.comment-content {    
    margin-left: 79px;
    margin-top: 30px;
    font-size: 1.15em;
    line-height: 1.5;
}

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/c/dc290e53d6a0f38fc84cbc90cec585d0c1c2c1da.jpeg)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [25 april 2020 om 22:44 UTC](https://meta.discourse.org/t/need-help-fixing-the-css-for-comments-below-wp-post/149296/3 "2020-04-25T22:44:26Z")

</div>

Alternative:

```css
.discourse-comments-area {
    padding-top: 15px;
}
.discourse-comments-title {
    font-size: 2em;
}
.comment {
    padding-top: 20px;
    min-height: 70px;
}
.comment-body {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.comment-meta {
    display: flex;
    //position: absolute;
    align-items: center;
    width: 100%;
    
}
.comment-metadata {
    margin-left: 5px;
    margin-top: 2px;
    color: #aaa;
    &:before {
        content: "/";
    }
}
.comment-author {
    display: flex;
    align-items: center;
    .avatar {
        width: 40px;
        height: 40px;
    }
    .fn {
        font-size: 1.4em;
        margin-left: 15px;
    }
}
.comment-content {
    margin-top: 15px;
    font-size: 1.15em;
    line-height: 1.5;
}

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/d/7d4961f5aad558dbe97e976ad640be28c7eeb19c.jpeg)

---

<div class="post-metadata">

### Author: ![steelmaiden](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steelmaiden/32/125527_2.png) [@steelmaiden](https://meta.discourse.org/u/steelmaiden)
#### Post date: [25 april 2020 om 23:01 UTC](https://meta.discourse.org/t/need-help-fixing-the-css-for-comments-below-wp-post/149296/4 "2020-04-25T23:01:41Z")

</div>

That looks great. Thanks! I prefer the 1st example.

Just need to fix the spacing between avatar and the username, and also the stuff that comes below the comments:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/d/adfaa1b8732923ab5d57b61e79005dfba4029d21.jpeg)

Also not sure why the link to Continue Discussion is not displayed below comments.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [26 april 2020 om 00:08 UTC](https://meta.discourse.org/t/need-help-fixing-the-css-for-comments-below-wp-post/149296/5 "2020-04-26T00:08:58Z")

</div>

I forgot we weren’t on Discourse in your case and my code used SCSS, not CSS, that’s why there is some stuff that didn’t work.

Here’s the compiled CSS:

```css
.discourse-comments-area {
	 padding-top: 15px;
}
 .discourse-comments-title {
	 font-size: 2em;
}
 .comment {
	 padding-top: 30px;
	 min-height: 70px;
}
 .comment-body {
	 display: flex;
}
 .comment-meta {
	 display: flex;
	 position: absolute;
	 width: 100%;
}
 .comment-metadata {
	 margin-left: 5px;
	 margin-top: 2px;
	 color: #aaa;
}
 .comment-metadata:before {
	 content: "/";
}
 .comment-author {
	 display: flex;
}
 .comment-author .fn {
	 font-size: 1.4em;
	 margin-left: 15px;
}
 .comment-content {
	 margin-left: 79px;
	 margin-top: 30px;
	 font-size: 1.15em;
	 line-height: 1.5;
}
 

```

For the bottom avatars, you can do this:

```css
#comments .comment-reply-title .avatar {
    display: inline-block;
    margin-right: 10px;
    margin-top: 15px;
}

```

![image](https://global.discourse-cdn.com/meta/original/3X/a/d/ad4dfcc5df8a25705e6321773f70af392caa7e4a.png)  
You just need to make, I guess, the two sentences above a bit bigger, but you can also do it yourself, just find the right HTML classes using your browser dev tools.

> [@steelmaiden](#):
>
> Also not sure why the link to Continue Discussion is not displayed below comments.

Maybe you need to check a setting in WP-Discourse?
