Site logo

Archived topic

How to add a line between posts on the welcome page

5 replies · Started by François on May 26, 2021

Viewing posts 1–6 of 6

Hello!

I'm a premium user with the last version of GeneratePress.

I would like to know how to add a line between posts into my homepage.

Same thing between the widgets in the right sidebar.

Is it possible please?

Thank you very much!

Hi there,

It's definitely possible w/ custom CSS.

Do you have any specific line styles you want to apply between the images within the right sidebar?

You can try this CSS:

.inside-right-sidebar > *:not(:last-child):after {

    width: 100%;
    height: 2px;
    background-color: red;
    content: "";
    display: block;
    position:absolute;
    left:0;
    bottom:0;
}

.inside-right-sidebar > *:not(:last-child) {
    position: relative;
}

You can change the value of height and background-color to change the thickness and color of the line.

Hello Elvin,

Thanks a lot, it works great in the right column.

But how do you do the same between the articles on the homepage please?

Thank you very much for your help!

Hi there,

try adding this CSS:

body:not(.single) .post footer {
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
}

Hello David,

You and Elvin are incredible!

Thank you so much!!!

Friendly

François

Glad we could be of help!

This archived topic is closed to new replies.