1. ecweb
  2. Sherlock Holmes
  3. Commercial Templates
  4. Monday, 20 April 2020
  5.  Subscribe via email
Hi,
We are using the j51_magnolia template on a web site and have uploaded an image as the header image via the template settings to appear as a banner on the home page.
However, the image doesn't scale down as expected when viewing on smaller screens - cutting off significant parts of the image.
The Header Min-Height template option can be used to define the height of this header - but it sets it in stone to for example 700px- which looks great on larger screens, but not so good for our image on smaller screens.
How can we define this header area:
- to have different heights for different screen sizes
- and maybe have different images for different screen sizes?
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Would you have a URL to an example of your header image(s)?

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
HI, you can see it at https://lifebloodaustralia.org/
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you

To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....

#container_header {
min-height: 0;
height: 0 !important;
padding-bottom: 40%;
}
@media only screen and (max-width: 767px) {
.vegas-slide {
margin-top: 104px;
}
#container_header {
padding-bottom: calc(40% + 104px);
}}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,
Thank you for your help.
I have now added this to 'nexus.css' for the template, but it seems to make the header image appear in a much larger scale?
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Have you tried adding to the Custom CSS field? You may have some cascading issues if added to the nexus.css.

If the issue is still present with the custom CSS field, may I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
that worked better - thank you!
  1. more than a month ago
  2. Commercial Templates
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.