COMMUNITY FORUM
Different size for Category images
- Christer Eriksson
- Topic Author
- Offline
- New Member
Less
More
9 years 1 month ago #147545
by Christer Eriksson
Different size for Category images was created by Christer Eriksson
Hi,
thank you for developing this great component!!
Image size for items works great.
I wonder how I can have different size for my category images.
I would like to have 200px for one category image and 300px for the rest of my category images.
I know it is possible with css, but I can't find a uniqe class to identify a specific category.
thank you for developing this great component!!
Image size for items works great.
I wonder how I can have different size for my category images.
I would like to have 200px for one category image and 300px for the rest of my category images.
I know it is possible with css, but I can't find a uniqe class to identify a specific category.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 1 month ago #147572
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Different size for Category images
Hello Christer,
You can override the category.php which displays the category and print the category's name or id (or both) as a CSS class.
You can override the category.php which displays the category and print the category's name or id (or both) as a CSS class.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Christer Eriksson
- Topic Author
- Offline
- New Member
9 years 1 month ago - 9 years 1 month ago #147593
by Christer Eriksson
Replied by Christer Eriksson on topic Different size for Category images
Thank you for your reply!
Overrides in K2 is great, I use them all the time. But I don't know how to print the category's name or ID. Could you please give me some more information? I'll search for it:-)
Overrides in K2 is great, I use them all the time. But I don't know how to print the category's name or ID. Could you please give me some more information? I'll search for it:-)
Last edit: 9 years 1 month ago by Christer Eriksson. Reason: Extra information on the subject.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 1 month ago #147610
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Different size for Category images
<?php echo $this->category->name; ?> and
<?php echo $this->category->id; ?> will give you the desired results.
<?php echo $this->category->id; ?> will give you the desired results.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Christer Eriksson
- Topic Author
- Offline
- New Member
9 years 1 month ago #147694
by Christer Eriksson
Replied by Christer Eriksson on topic Different size for Category images
Thank you for the solution!
And thank you for your time!
All the best,
Christer
And thank you for your time!
All the best,
Christer
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 1 month ago #147705
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Different size for Category images
You 're welcome Christer :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.