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!