How to change K2 item font?

Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.3.50 out of 6 based on 2 vote(s)
GK User
Wed Jan 14, 2015 12:43 pm
Reply with quote
Report this post
Hi, is there a way to change the K2 articles` font to Helvetica, 12 pt, colour black. (News 2 template, Joomla 3)
User avatar
Expert Boarder

GK User
Wed Jan 14, 2015 5:19 pm
Reply with quote
Report this post
Could you please post an url to your site - to exact place where the change should be made?
User avatar
Moderator

GK User
Thu Jan 15, 2015 8:38 am
Reply with quote
Report this post
Hi, I want to change it in all K2 articles. Now I do this with the article manager for every article manually. Here is an example link: http://www.zdravduh.com/index.php/2011- ... 86-citrusi
User avatar
Expert Boarder

GK User
Fri Jan 16, 2015 5:49 pm
Reply with quote
Report this post
Please edit: /templates/gk_news2/css/override.css and add at its end:
Code: Select all
#k2Container .itemIntroText, #k2Container .itemFullText {
 font-family: helvetica;
 font-size: 12pt;
 color: #000000;   
}

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Sat Jan 17, 2015 11:42 am
Reply with quote
Report this post
Thank you so much! You are the best :)
User avatar
Expert Boarder

GK User
Mon Jan 19, 2015 7:46 am
Reply with quote
Report this post
Please let me know if you would have any additional questions regarding this topic.
User avatar
Moderator

GK User
Mon Jan 19, 2015 9:40 am
Reply with quote
Report this post
Ok, I have one question. If a brawser, cannot display helvetica, which font will be displayed instead of it.
User avatar
Expert Boarder

GK User
Tue Jan 20, 2015 12:24 pm
Reply with quote
Report this post
Depends on font settings in css and default behave in browser itself.
Helvetica is a standard win/osx/linux font so it should always display correctly.
User avatar
Moderator

GK User
Wed Jan 21, 2015 12:24 pm
Reply with quote
Report this post
One more question. I added this code as well:
#k2Container .itemIntroText, #k2Container .itemFullText {
text-align: justify;
}
Is it correct to add it under the code you provided me with:

#k2Container .itemIntroText, #k2Container .itemFullText {
font-family: helvetica;
font-size: 12pt;
color: #000000;
}

Because when I try to combine them like shown below, the justify feature doesn`t work:
#k2Container .itemIntroText, #k2Container .itemFullText {
font-family: helvetica;
font-size: 12pt;
color: #000000;
text-align: justify;
}
User avatar
Expert Boarder

GK User
Fri Jan 23, 2015 5:10 pm
Reply with quote
Report this post
It might be overwritten later in css. Please post it as a single declaration (second example) and let me know, I'll check that for you.
User avatar
Moderator

GK User
Sat Jan 24, 2015 9:07 am
Reply with quote
Report this post
OK, it works now. I don`t know why first time it didn`t take effect. Thank you!
User avatar
Expert Boarder

GK User
Sat Jan 24, 2015 1:20 pm
Reply with quote
Report this post
Cache issue - when you change something on a live page - alway check with incognito/private mode of the browser.
User avatar
Moderator

GK User
Sat Jan 24, 2015 5:07 pm
Reply with quote
Report this post
A good tip :) Thanks again :)
User avatar
Expert Boarder

GK User
Mon Jan 26, 2015 5:09 pm
Reply with quote
Report this post
No problem :).
User avatar
Moderator


cron