COMMUNITY FORUM
How do I change the number of columns in K2?
- Grigory Baryshev
-
Topic Author
- Offline
- New Member
Less
More
12 years 11 months ago - 12 years 11 months ago #100729
by Grigory Baryshev
How do I change the number of columns in K2? was created by Grigory Baryshev
How do I change the number of columns in K2, instead of three columns - features four in a row? Namely, in the latestItemsContainer. It's here: venergodare.com/virtual-city
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
12 years 11 months ago #100730
by Lefteris
Replied by Lefteris on topic Re: How do I change the number of columns in K2?
Hi. You need to check the category settings and the menu link settings.
Please Log in or Create an account to join the conversation.
- Grigory Baryshev
-
Topic Author
- Offline
- New Member
12 years 11 months ago #100731
by Grigory Baryshev
Replied by Grigory Baryshev on topic Re: How do I change the number of columns in K2?
Thank you for your reply. I changed the settings in the menus and settings into categories. I did not help. Only on Joomla! 1.5 does not show 4 columns. At Joomla! 2.5 works fine.
Please Log in or Create an account to join the conversation.
- Grigory Baryshev
-
Topic Author
- Offline
- New Member
12 years 11 months ago #100732
by Grigory Baryshev
Replied by Grigory Baryshev on topic Re: How do I change the number of columns in K2?
I need to change the width parameter from
<div class="latestItemsContainer" style="width:25.0%;">
to
<div class="latestItemsContainer" style="width:20.0%;">.
But I do not know where to find the file, which is responsible for this option.
<div class="latestItemsContainer" style="width:25.0%;">
to
<div class="latestItemsContainer" style="width:20.0%;">.
But I do not know where to find the file, which is responsible for this option.
Please Log in or Create an account to join the conversation.
- Grigory Baryshev
-
Topic Author
- Offline
- New Member
12 years 11 months ago #100733
by Grigory Baryshev
Replied by Grigory Baryshev on topic Re: How do I change the number of columns in K2?
Here is the file located at latest.php /public_html/YOUR WEB SITE/components/com_k2/templates/default
open it, look for line 26, which looks like this:
<div class="latestItemsContainer" style="width:<?php echo number_format(100/$this->params->get('latestItemsCols'), 1); ?>%;">
replace this line as follows:
<div class="latestItemsContainer" style="width:20%;"
Now look venergodare.com/virtual-city four columns in the same row as required, as shown on the templatefiles.artisteer.com/1140/HTML/index.html
But did not understand anyway, the 25% to Joomla! hidden pattern, all rummaged through it, never found, and yet well understood initially taken out everything?
But still again, the Joomla! 2.5 All works well without a "surgical" interventions!
open it, look for line 26, which looks like this:
<div class="latestItemsContainer" style="width:<?php echo number_format(100/$this->params->get('latestItemsCols'), 1); ?>%;">
replace this line as follows:
<div class="latestItemsContainer" style="width:20%;"
Now look venergodare.com/virtual-city four columns in the same row as required, as shown on the templatefiles.artisteer.com/1140/HTML/index.html
But did not understand anyway, the 25% to Joomla! hidden pattern, all rummaged through it, never found, and yet well understood initially taken out everything?
But still again, the Joomla! 2.5 All works well without a "surgical" interventions!
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
12 years 10 months ago #100734
by Lefteris
Replied by Lefteris on topic Re: How do I change the number of columns in K2?
The latest view you are referring to has the columns setings in the menu. So if you tell it to create 4 columns it will create 4 div elements 25% width each. You need to make sure that those div elements have no padding.
Please Log in or Create an account to join the conversation.