change size picture in K2 categories
February 2014 Joomla Template
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Tue Nov 25, 2014 11:21 pm
- Reply with quote
- Report this post
Hi! I have K2 categories with 4 article and in "Item view options in category listings" picture very big. Size may change in:
section img {
height: auto!important;
max-width: 100%!important;
But if i change it in : /templates/gk_news2/css/joomla.css - changed pictures in each module. How change size picture only in this K2 categories?
URL:http://239703.hoster-test.ru/index.php/zhurnaly
section img {
height: auto!important;
max-width: 100%!important;
But if i change it in : /templates/gk_news2/css/joomla.css - changed pictures in each module. How change size picture only in this K2 categories?
URL:http://239703.hoster-test.ru/index.php/zhurnaly
-

- Junior Boarder
- GK User
- Thu Nov 27, 2014 11:22 am
- Reply with quote
- Report this post
Hello,
I suggest to add a page suffix for the menu item with this category - in the template settings under the features tab, you can specify a page suffix for a specific menu item. And then you can prepare a custom CSS code prefixed with your page suffix like:
I suggest to add a page suffix for the menu item with this category - in the template settings under the features tab, you can specify a page suffix for a specific menu item. And then you can prepare a custom CSS code prefixed with your page suffix like:
- Code: Select all
.MYSUFFIX section img {
...
}
-

- Administrator
- GK User
- Mon Dec 01, 2014 3:32 pm
- Reply with quote
- Report this post
I find it settimgs, but I did something wrong. I write suffix and id ( screnshot). Maybe something make even?
-

- Junior Boarder
- GK User
- Mon Dec 01, 2014 5:09 pm
- Reply with quote
- Report this post
You have to put only the name of the suffix class like: MYSUFFIX, the code which I've provided you should put in the template settings -> advanced settings tab -> custom CSS code option.
-

- Administrator
- GK User
- Fri Dec 05, 2014 3:30 pm
- Reply with quote
- Report this post
Yes, it works. But I can add one more suffix, for example, if I want to display the image in the middle of the block? What a custom code I'll have to add?
-

- Junior Boarder
- GK User
- Mon Dec 08, 2014 8:39 am
- Reply with quote
- Report this post
So in this case you have to create MYSUFFIX2 and add it as the previous one.
-

- Administrator
- GK User
- Mon Dec 08, 2014 6:49 pm
- Reply with quote
- Report this post
long thought of as a result of Contents - placed in one suffix:
.MYSUFFIX section img {
max-width: 55%!important;
display:block;
margin:0 auto;
}
Now in category everything ok! Thank you!
.MYSUFFIX section img {
max-width: 55%!important;
display:block;
margin:0 auto;
}
Now in category everything ok! Thank you!
-

- Junior Boarder
7 posts
• Page 1 of 1
