Essential grid height & button border

Hello there,

I’m working on my site and could get my head around why:

  1. I cannot set minimum and maximum height for my essential grid row. I think I tried everything on this forum including the themepunch forum. Nothing seems to work in my scenario.

  2. I cannot see border around text

Hi There,

I could see that you’re using the cache plugin. I recommend you to purge all the caches and clear all the browser cache as well then check again. Because the border around the Více info / Objednat se is displaying fine on my end:

Please update your custom CSS from:

.equal-seminare {
    min-height: 500px !important;
}

To:

.equal-seminare {
    min-height: 500px !important;
    display: flex !important;
    flex-flow: wrap;
}

Hope it helps :slight_smile:

Ahh, it seems like you were looking at the homepage. The link I have sent is different version of the homepage and I’m trying to recreate the grid with essential grid, because of the better meta abilities (I want to have lightbox on the button click).

Hi There,

The border settings of button is overrided by the default CSS of Essential Grid plugin.

I’ve edited the skin and enabled the Force !important in styles option and the border is working fine now:

You can change the color of border under Style > Border tab:

Regards!

Thank you very much! How can I set the row of the two grid to be set to 500px though?

Hi @vojtechzikmund,

Please follow the solution provided here.

Hope it helps,
Cheers!

It does stay at 500px, but it breaks when you go below ~1040px, and then on mobile… on mobile the height is like 340px… I’m including screenshot.

I added this css:

.esg-entry-media-wrapper, .esg-entry-cover {
    max-height: 500px !important;
}
 
.esg-cc {
    top: 0 !important;
}

@media screen and (max-width: 768px) {
 
	.esg-entry-media-wrapper, .esg-entry-cover {
		max-height: 500px;
	}
 
}

Hi @vojtechzikmund,

Try adding a min-height on it.

.esg-entry-media-wrapper, .esg-entry-cover {
    max-height: 500px !important;
    min-height: 500px !important;
}
 
.esg-cc {
    top: 0 !important;
}

@media screen and (max-width: 768px) {
 
	.esg-entry-media-wrapper, .esg-entry-cover {
		max-height: 500px;
		min-height: 500px !important;
	}
 
}

Thanks,

Okay it seems to do the trick, but I’m still getting awkward padding at the bottom of the background image. Can you see that? The media fit is set to cover, but it certainly doesn’t cover and doesn’t scale properly with the box.

Hi,

Try adding this code as well.

.esg-entry-media {
    padding-bottom: 100% !important;
}

Hope that helps

That worked like a charm, thank you :slight_smile:

I have another question though, see secure note please.

Hi there,

It’s scaling properly on my end, the issue that I’m seeing is the spacing that you applied and it’s too big for mobile.

Exampe, if mobile view is 480px, minus 200px (100px left and right), with 75% maximum width then the resulting width available for content is 480px - 200px = 280px - 25% = 210px. How about just setting those padding to zero and max-width to 100%? Then just use CSS to control them, example,

@media (min-width: 980px) {
.eg-lightbox-post-content-inner {
    padding: 25px 100px 50px 100px !important;
    min-width: 75% !important;
}
}
@media ( max-width: 979px ) {
.eg-lightbox-post-content-inner {
    padding: 25px !important;
    min-width: 100% !important;
}
}

Hope this helps.

Thanks!

Thank you sir! Cannot be done better :slight_smile:

You are most welcome!

Just realised that the font used in the lightbox is different than I use on the rest of the page. I have the font set right in theme options etc. and yet the lightbox still uses font “system-ui”. Why?

Hi @vojtechzikmund,

The theme’s font is not directly integrated to lightbox font, it has a separate implementation. Plus, it’s connected to post content through Ajax, the reason it’s slow and the other parts are stripped away (like header and footer where fonts are declared).

And with ajax content, the lightbox downloads it so it will appear slower compared to contents already available upon page loads (like images). If you wish, you can also apply the font through CSS,

Example,

.eg-lightbox-post-content {
font-family: Arial;
}

As for slow loading, there are many contributing factors like the internet, content size, optimization, and so on. There is no workaround for that setup as of now.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.