1. cuervo
  2. Commercial Templates
  3. Friday, 11 August 2023
  4.  Subscribe via email
Hi,

The mobile version of the Central Template (J4) only shows a cropped background image of the showcase module. Is there a custom CSS for mobile that scales down the image, so that a larger portion or the entire image is visible?

https://epicentro.host/desiree-j4-v2/index.php/en/

Thanks
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

An option is to reduce the height of the header area on smaller devices. To amend you can add the following to the Responsive Custom CSS fields within the General -> Responsive Options tab of your template settings. For more details on using these fields may I suggest the following article... https://joomla51.com/tutorials/template-parameters/applying-custom-css-to-a-screensize-device

(edit to taste)

#container_header {
max-height: 500px;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for your reply. That did change the height of the header. But how do I scale the background image so it fits in the header, as opposed to just being cropped?

Thanks.
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

To amend try replacing the suggested CSS with the following...

#container_header {
max-height: 500px;
}
#jarallax-container-0 > div {
top: 142px !important;
}


Some cropping will always occur to ensure the image fills the area however the above CSS will stop the logo area overlapping the image.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ciaran,

I inserted the CSS in the Phone (L/scape) Custom CSS and Phone (Portrait) Custom CSS fields of the responsive options tab but unfortunately it didn't make a difference. See attached screenshots. Do you have any other suggestions?

Thanks.
Attachments (3)
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Could I ask you to replace the suggested CSS with the following...

#container_header {
max-height: 500px;
}
#jarallax-container-0 > div {
top: 142px !important;
max-height: 358px;
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for your reply but the new CSS didn't change much, I'm afraid.
  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.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok