Keyword

Blanks appearing in my K2 list

More
7 years 7 months ago #160498 by Clare
Blanks appearing in my K2 list was created by Clare
Hi

Any help will be appreciated!

If you see this following page: hurleyschool.co.uk/index.php/staff

You will notice theres lots of blank spaces, the staff dont appear next to each other like they should.

There's no unpublished or hidden staff members, I just cant figure out why this is happening?

Thanks

Clare

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

More
7 years 7 months ago #160500 by alexandria
Replied by alexandria on topic Blanks appearing in my K2 list
Hello,
I have seen that the k2.css file in the css folder of your template have this class :
.professorsListView .itemsContainerWrap {
	float: left;
	padding: 0 1%;
}

if you add height to it maybe it can work
.professorsListView .itemsContainerWrap {
	float: left;
	padding: 0 1%;
	height: 350px;
}

Not sure if it can help you

Best regards

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

More
7 years 7 months ago #160511 by Clare
Replied by Clare on topic Blanks appearing in my K2 list
Thanks Alexandria

As these are K2 items I am not sure how to get to the source code?

I have toggled the editor on the items and category pages but no code is showing?

Any helps appreciated :)

Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #160538 by Krikor Boghossian
Replied by Krikor Boghossian on topic Blanks appearing in my K2 list
You need to edit the k2.css file which is located in the /css folder of your template. Alternatively you can contact the template's developer.

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

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

More
7 years 7 months ago #160553 by alexandria
Replied by alexandria on topic Blanks appearing in my K2 list
Hello,

Another method is the overide.css file.
Your k2.css file have important modifications of the original file so if you edit it you need to have a copy of it but
it is maybe possible that you don't touch that file and edit only the overide.css file in Joomla admin > Extensions > Templates > Templates and add this to it :
.professorsListView .itemsContainerWrap {
	height: 350px;
}

Maybe you need to check Extensions > Templates > Styles if css overide is enabled.

I found with 'firebug' that adding height in this class seems to resolve your problem when looking at your site with firefox. But i am not sure it will :)

You can try it if you don't find a better solution because when you edit a class in a css file it can have unexpected results on other pages which use that class.

For example the page About us > Governors use the same class without images, so adding height will change that page because the div itemsContainerWrap will have a height of 350px and only text in it so you will see blanks there too.
Maybe that page share the same k2 category template and need images too ?

Best regards

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

More
7 years 7 months ago #160554 by Clare
Replied by Clare on topic Blanks appearing in my K2 list
Hi

Do you think I should disable the K2 default CSS? : imgur.com/a/6r2P6

Thanks

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

More
7 years 7 months ago #160555 by Clare
Replied by Clare on topic Blanks appearing in my K2 list
Yay, I got into the K2 css file and added : height: 350px; and it worked like a dream.

Thank you all so much for your help, I really appreciate it.

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

More
7 years 7 months ago #160556 by alexandria
Replied by alexandria on topic Blanks appearing in my K2 list
Hello,

great!

Don't disable the K2 default CSS.

Maybe you have to check that Governors page, it seems there is no images.

Best regards

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #160572 by Krikor Boghossian
Replied by Krikor Boghossian on topic Blanks appearing in my K2 list
Since you are using a commercial template you can always ask the template's developer for assistance.

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