Keyword

How to change k2 related items to horizontal

  • kelvin
  • kelvin's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 weeks ago #133101 by kelvin
can any one tell me how to change the way related items are viewed in k2 articles from vertical to horizontal. I would very much like my related items to be in a horizontal mode. thanks.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 weeks ago #133102 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: How to change k2 related items to horizontal
You can override K2's css file and change it to match your design needs.

You can specify width eg: 33.33% for the div.itemRelated ul li and set it to float: left; or inline-block

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

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

More
8 years 3 months ago #156584 by Patrick Roden
Replied by Patrick Roden on topic Re: How to change k2 related items to horizontal
After adding the k2.css file to my template css folder to create the override for adding this css, the rating star images disappear and i can no longer view them on the item. Any suggestions would be greatly appreciated.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #156594 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: How to change k2 related items to horizontal
You need to move the images (/images folder) to your template's folder as well. If there is an /images folder already present you can simply move only the folder's contents.

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

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

More
8 years 3 months ago #156860 by Patrick Roden
Replied by Patrick Roden on topic How to change k2 related items to horizontal
Thank you. This worked. Also, I am trying to make the images click-able. I have created the override folder for item.php and entered the suggested code with no luck as prescribed here . Is there something I could be missing?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156975 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to change k2 related items to horizontal
Make sure you edited the correct file.
This post getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates will help you locate the file (item.php) you need to edit.

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