Site logo

Archived topic

Created Related post with featured image using GB Query Loop Block

5 replies · Started by Henry on November 28, 2022

Viewing posts 1–6 of 6

I've just copied the design to my sidebar. Kindly check via the post list shared above.

Hi Henry,

I see. For the counter, can you try adding this through Appearance > Customize > Additional CSS:

.inside-right-sidebar {
    counter-reset: section;
}

.inside-right-sidebar .gb-query-loop-item {
    position: relative;
}

.inside-right-sidebar .gb-query-loop-item::before {
    counter-increment: section;
    display: block;
    content: counter(section);
    position: absolute;
    padding: 5px;
    top: 0;
    left: 0;
    color: #fff;
    z-index: 100;
    transform: translate(-35%, -40%);
}

.inside-right-sidebar .gb-query-loop-item::after {
    background-color: #5555ff;
    content: "";
    position: absolute;
    border-radius: 100%;
    height: 30px;
    width: 30px;
    transform: translate(-40%, -40%);
    border: solid 2px #fff;
    top: 0;
    left: 0;
    z-index: 99;
}

Works perfectly..

Thanks Fernando.

You're welcome, Henry!

This archived topic is closed to new replies.