How To Override Width Allowed For Logo In Helix Predefined Header - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Override Width Allowed For Logo In Helix Predefined Header

Karen Dunne

Karen Dunne

Helix Framework 3 years ago

How can the column width be adjusted for a center logo placement in Helix. The logo for the site is not square and needs more width than height. There are height settings in Helix but not width and I don't see a CSS override possible to adjust the width. How can this be accomplished?

https://monosnap.com/file/UjnOVWSCmkkfQ0qREVaMuoADkVtop0 https://monosnap.com/file/rT8jZuSCQmse7cRCSFp9pM9nUYzNXL

0
4 Answers
Pavel
Pavel
Accepted Answer
3 years ago #90478

Hi. Try this

.logo-image {
    height: auto !important;
    width: 200px;
}

Set width value as you like

0
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
‏‏‎ ‎J‏‏‎‎e‏‎‏‏‎‎n‏‏‎‎s W.‏‏‎
Accepted Answer
3 years ago #90484

@Karen
If Pavel's code does not work completely, then it could be due to max-width, which is defined by helix ultimate.
So you can also go beyond the limits of the flex box with the width of the image.
What surprises me, in Helix Ultimate 2.0.11 images default to "height:auto;" which should result in a correct display.

helix ultimate template.css

img {
    display: block;
    max-width: 100%;
    height: auto;
}

The code would then look like this.

.logo-image {
    width: 402px;
    height: auto !important;
    max-width: initial;
}
0
Toufiq
Toufiq
Accepted Answer
Senior Staff 3 years ago #90559

Hi there,

Thanks for contacting us. Sorry for the inconvenience. If you don't mind would you please share your site URL to check the issue?

-Thanks

0
Karen Dunne
Karen Dunne
Accepted Answer
3 years ago #90600

Thank you @Jens and @Pavel,

That worked. And the additional CSS that Jens provided provided more control, too.

Cheers,

Karen

1