Keyword

Category image to ignore the container-fluid max width

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • Senior Member
More
4 years 9 months ago #174757 by Andrea
Hi, i'm trying to figure out in which template file i can edit the category display and assign to one of the container-fluids (the one that contains the category main image) another class that forces it to ignore its preset max-width.
Please see here the page: verticalife.it/it/prova-category-italia-new

What i'm trying to achieve is in the attached screenshot.
Hope you can help, best regards,

Andrea
Attachments:

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

More
4 years 9 months ago - 4 years 9 months ago #174775 by JoomlaWorks
Just locate the category image output in category.php (the K2 override) and either delete the hardcoded width value entirely and control its width via CSS, or just set it to "width:100%;height:auto;".

github.com/getk2/k2/blob/master/components/com_k2/templates/default/category.php#L51

The result will look like this: jmp.sh/q8o8f9G (notice the additional CSS change for the padding of the image container)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 4 years 9 months ago by JoomlaWorks.

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


Powered by Kunena Forum