Keyword

Category image to ignore the container-fluid max width

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • Junior Member
More
1 week 3 days ago #174757 by Andrea
Andrea created the topic: Category image to ignore the container-fluid max width
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.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 week 2 days ago - 1 week 2 days ago #174775 by Fotis
Fotis replied the topic: Category image to ignore the container-fluid max width
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)

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member
Last edit: 1 week 2 days ago by Fotis.

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


Powered by Kunena Forum