Need help recreating 2 layouts through elementor

xeric

Member
Apr 5, 2019
93
21
8
Hi everyone.

I need some help in recreating 2 specific layouts using elementor. Theme I'm using is JupiterX.

First Layout:

1614617029522.png

For this one I was thinking I make a section with 2 columns. Make column 1 be 30% width and column 2 be 70% width. Set image in column 1 and set background color and padding in column 2 to make sure text is placed in correct position.

Then for the offset box outline, I was thinking of making a duplicate section below this. Set column 1 to be empty and set a border color on column 2 and move section 2 using negative margins to make it appear above section 1.

Is there a better way of going about this?


Second,

1614617257750.png

I want to create this kind of an alternating layout for blog posts. The posts should be automatically updated. The solution I can think of right now for this is to set up the posts manually but that will be very tiresome to maintain.

Appreciate any help that you guys can give on this.

Thanks.
 

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,640
26,986
120
@xeric I would suggest you to introduce yourself to the community. As almost everyone around is helpful they kinda don't like to deal with strangers.

@medw1311 quoting you here for your awesome skills: do you want an apprentice?
 

xeric

Member
Apr 5, 2019
93
21
8
@xeric I would suggest you to introduce yourself to the community. As almost everyone around is helpful they kinda don't like to deal with strangers.

@medw1311 quoting you here for your awesome skills: do you want an apprentice?

Sure steele i'll make a post in the introduction section
 

MrSam_1

Well-known member
Administrative
Trusted Seller
Dec 1, 2018
23,640
26,986
120
@xeric I would suggest you to introduce yourself to the community. As almost everyone around is helpful they kinda don't like to deal with strangers.

@medw1311 quoting you here for your awesome skills: do you want an apprentice?
I'll come back to this when I've caught up with every thing else.
 

frizzel

Well-known member
Trusted Uploader
Jun 13, 2019
485
253
63
Wherever my imagination takes me
The second example is simple to do:

In Elementor, choose the 'Posts' widget and set it to:
Skin: Classic
Columns: 1
Posts per Page: 4 (or whatever number you want)
Image Position: Right
Image Width: 50%

In 'Advanced' give it a css class, e.g. 'alternating'

In Custom CSS add this:

CSS:
.alternating article:nth-child(even){
    flex-direction: row-reverse;
}
.alternating article:nth-child(even) .elementor-post__thumbnail__link {
    margin-left:0!important;margin-right:20px!important;
}

(In my quick and dirty example I had to use 'important'. Of course you should always try to avoid that, but I'm too lazy to find out the complete CSS trail to override in Elementor, which by the way is probably different in your case. That's the main issue I have with this page builder: the endless nested elements and the associated CSS trails, terrible!)

Anyway, the above is, as said, a quick and dirty example but it should get you going.
 
Last edited:
  • Like
Reactions: xeric

xeric

Member
Apr 5, 2019
93
21
8
Thanks for the quick solutions frizzel.
Overlapping columns is exactly how I was thinking of doing the first one.
And for the second, I never even thought of doing it with CSS so I appreciate the insight.
 

xeric

Member
Apr 5, 2019
93
21
8
The second example is simple to do:

In Elementor, choose the 'Posts' widget and set it to:
Skin: Classic
Columns: 1
Posts per Page: 4 (or whatever number you want)
Image Position: Right
Image Width: 50%

In 'Advanced' give it a css class, e.g. 'alternating'

In Custom CSS add this:

CSS:
.alternating article:nth-child(even){
    flex-direction: row-reverse;
}
.alternating article:nth-child(even) .elementor-post__thumbnail__link {
    margin-left:0!important;margin-right:20px!important;
}

(In my quick and dirty example I had to use 'important'. Of course you should always try to avoid that, but I'm too lazy to find out the complete CSS trail to override in Elementor, which by the way is probably different in your case. That's the main issue I have with this page builder: the endless nested elements and the associated CSS trails, terrible!)

Anyway, the above is, as said, a quick and dirty example but it should get you going.

Sorry to bother you again but a slight modification to this design has left me scratching my head. I managed to do the earlier design perfectly but in this new one, I can't manage to "unset" the image out of the container to give it the hover effect.

1615274725305.png

If I try to add a margin-top to the image or try to change the spacing of the featured image using the posts settings on the left, instead of knocking the image out of the container, it just adds space to the top, which makes sense but is not the look I'm trying to achieve.

1615274899338.png

I'm just not sure what CSS or other setting I'm missing to achieve the look of the image hovering over the bg and would appreciate any help.

Thanks
 

frizzel

Well-known member
Trusted Uploader
Jun 13, 2019
485
253
63
Wherever my imagination takes me
To make content flowing outside their containers visible, you first must override the default setting for that, in this case with the following CSS:

CSS:
.elementor-posts--skin-classic .elementor-post {
    overflow: visible
}

To push the image outside the container you can do something like this:

CSS:
.elementor-post__thumbnail {
    margin: -25px 25px 25px -25px
}

That's for an image on the left. Of course you need to alternate these margin settings for odd and even posts. For an image on the right, it would be something like:

CSS:
.elementor-post__thumbnail {
    margin: -25px -25px 25px 25px
}
 
Last edited:
  • Like
Reactions: xeric

xeric

Member
Apr 5, 2019
93
21
8
To make content flowing outside their containers visible, you first must override the default setting for that, in this case with the following CSS:

CSS:
.elementor-posts--skin-classic .elementor-post {
    overflow: visible
}

To push the image outside the container you can do something like this:

CSS:
.elementor-post__thumbnail {
    margin: -25px 25px 25px -25px
}

That's for an image on the left. Of course you need to alternate these margin settings for odd and even posts. For an image on the right, it would be something like:

CSS:
.elementor-post__thumbnail {
    margin: -25px -25px 25px 25px
}
Can't believe it was as simple as just setting the overflow. Thanks once again mate, really appreciate it.
 

Forum statistics

Threads
69,229
Messages
908,458
Members
237,097
Latest member
ahhshd

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu