Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Slideshow height

More
10 years 11 months ago #137334 by Dotty
Slideshow height was created by Dotty
Just wondering how to adjust the slideshow height. I hoped it might be a setting within the module, THEN I hoped as a second preference it might derive height from the image but this doesn't work either - it appears to be hard-coded.

Any help appreciated.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #137335 by Krikor Boghossian
Replied by Krikor Boghossian on topic Slideshow height
Hello David,

In your custom.css file just add
.contentSlideshow .itemsWrapper { height: HEIGHT_px; }

Where HEIGHT is the height is pixels eg:height: 590px which is now at the moment.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #137336 by Dotty
Replied by Dotty on topic Slideshow height
Thanks Krikor, that worked perfectly. I see now however that the item detail also has the same hard coded height issue and the following doesn't work:

.itemImageBlock.landscapeSize { height: 400px; }

It would be really great if the item image could handle variable heights (allow clients to add their own images)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #137337 by Krikor Boghossian
Replied by Krikor Boghossian on topic Slideshow height
This is functioning a bit different than the slideshow.

If the user uploads an image larger than a specific ratio ( 4/3 by default ) the layout will revert to a smaller image with a blurred background.
Let me know if you want to increase or decrease that threshold. I can help you force one of the two layouts as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #137338 by Dotty
Replied by Dotty on topic Slideshow height
Hi Krikor. Yes I noticed that blurred background solution which is actually very nice. I'd like to retain that functionality but reduce the height of the entire .itemImageBlock block (ideally using overrides to allow smooth upgrades).

Thanks again for your time on this.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #137339 by Krikor Boghossian
Replied by Krikor Boghossian on topic Slideshow height
The .itemImageBlock.landscapeSize controls the ratio of the image. To keep both the blurred icon and reduce the height you can specify a height or a fixed ratio for that CSS class.

Eg. in your custom css add something like:
.itemImageBlock.landscapeSize { height: 400px; padding: 0; }
or
.itemImageBlock.landscapeSize { padding: 0 0 45%; }

This will affect the landscape photos and leave the blurred background functionality intact.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #137340 by Dotty
Replied by Dotty on topic Slideshow height
All sorted Krikor - many thanks again

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum