Keyword

How do I change the number of columns in K2?

  • Grigory Baryshev
  • Grigory Baryshev's Avatar Topic Author
  • Offline
  • New Member
More
12 years 2 months ago - 12 years 2 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.

More
12 years 2 months ago #100730 by Lefteris
Hi. You need to check the category settings and the menu link settings.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Grigory Baryshev
  • Grigory Baryshev's Avatar Topic Author
  • Offline
  • New Member
More
12 years 2 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
  • Grigory Baryshev's Avatar Topic Author
  • Offline
  • New Member
More
12 years 2 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.

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

  • Grigory Baryshev
  • Grigory Baryshev's Avatar Topic Author
  • Offline
  • New Member
More
12 years 2 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!

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

More
12 years 2 months ago #100734 by Lefteris
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum