tag cloud display like native k2

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri May 10, 2013 2:19 pm
Reply with quote
Report this post
Hello,

I am using the 3.0 News Template and have started from the demo.

I want my K2 tag cloud to look like a tradtional tag cloud...like it does in the regular k2 module...in a cloud like formation rather than a single column list.

I can't find the css that overrides the native css - other than the line indicating the star bullet image.

Can you tell me how I can get it to display like a traditional tag cloud?

Thank you!
User avatar
Fresh Boarder

GK User
Fri May 10, 2013 2:26 pm
Reply with quote
Report this post
Hi,
first of all you have to remove tag.php from templates/gk_news/html/mod_k2_tools/ becasue this file override regular k2 tags view. Then you need remove css rules from templates/gk_news/css/k2.css
User avatar
Gold Boarder

GK User
Fri May 10, 2013 2:31 pm
Reply with quote
Report this post
1. Enable override.css in template settings.
2. Edit file: /templates/gk_news/css/override.css and add at the end:
Code: Select all
.k2TagCloudBlock a { display: inline-block !important; background: none; padding: 4px;}
User avatar
Moderator

GK User
Fri May 10, 2013 2:38 pm
Reply with quote
Report this post
wow, speedy! Thank so much both of you. I will give it a go.
User avatar
Fresh Boarder

GK User
Fri May 10, 2013 2:40 pm
Reply with quote
Report this post
Konrad's reply will give You controll over font size of tag cloud elements (bigger/smaller etc), mine will only put them next to each other, but without size variable.
You could also mix them together :)
User avatar
Moderator

GK User
Mon May 27, 2013 1:01 am
Reply with quote
Report this post
by Konrad M » Fri May 10, 2013 1:26 pm wrote:

Hi,
first of all you have to remove tag.php from templates/gk_news/html/mod_k2_tools/ becasue this file override regular k2 tags view. Then you need remove css rules from templates/gk_news/css/k2.css


Hi... when you say remove css rules form templates/gk_news/css/k2.css is there a particular line you can show that needs to be removed. I'm not as good at identifying the correct code and I don't want to adversely affect something else.
User avatar
Fresh Boarder

GK User
Mon May 27, 2013 7:52 am
Reply with quote
Report this post
You should comment those 2 lines:
Code: Select all
.k2TagCloudBlock a {
   background: url(../images/style1/tag_bullets.png) no-repeat 0 8px;
   display: block;
   line-height: 1.8;
   padding-left: 20px
}

.k2TagCloudBlock a:hover {
   background-position: 0 -303px
}

to comment in css place /* in beginning of comment and */ at end so the block looks like:
Code: Select all
/*
.k2TagCloudBlock a {
   background: url(../images/style1/tag_bullets.png) no-repeat 0 8px;
   display: block;
   line-height: 1.8;
   padding-left: 20px
}

.k2TagCloudBlock a:hover {
   background-position: 0 -303px
}
*/


also You should add one thing to override.css:
Code: Select all
background-image: none;
}

to get ride of the stars.
User avatar
Moderator


cron