Default font for intro and fulltext in k2 items

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
Wed May 21, 2014 6:16 pm
Reply with quote
Report this post
Hello,

I have been trying to change the font size and family for the default text showed in the content (in my case k2 intro and full text) but I have not found the way.

I tryed add the style in override.css (overise is enabled in the template parameters).

How can I change only the style in the intro and full text of k2 items ?

Best,
Pablo.
User avatar
Junior Boarder

GK User
Wed May 21, 2014 9:06 pm
Reply with quote
Report this post
Hi,
"Intro" - you thought about HomePage only ?
If yes, you can add / use suffix only for this page and add before your style, so it will be used only on selected pages not all.
Second option use custom CSS on selected pages.

Please read those my guides:
1) http://www.gavick.com/documentation/gen ... mla-pages/
2) http://www.gavick.com/documentation/joo ... ent-pages/
3) http://www.gavick.com/documentation/joo ... ted-pages/
User avatar
Platinum Boarder

GK User
Wed May 21, 2014 9:08 pm
Reply with quote
Report this post
And about it:
How can I change only the style in full text of k2 items ?

It depends what changes you want to add,
because K2 allows you to use templates/themes for selected k2 categories so they can use different style names if you want.
User avatar
Platinum Boarder

GK User
Wed May 21, 2014 11:06 pm
Reply with quote
Report this post
Pawel F wrote:Hi,
"Intro" - you thought about HomePage only ?
If yes, you can add / use suffix only for this page and add before your style, so it will be used only on selected pages not all.


I mean the introtext and fulltext field of an item in K2. I want to change the style when the item is showed. Are we talking the same? :)

Best,
Pablo.
User avatar
Junior Boarder

GK User
Wed May 21, 2014 11:44 pm
Reply with quote
Report this post
Ahhh, ok, good to know.
So please use Firebug like I shown here: http://www.gavick.com/documentation/joo ... -size-etc/

Open view -> Run Firebug -> Find -> Check if this work -> then Override

K2 uses different styles than default Joomla articles so you don't have to worry about rest of page.
User avatar
Platinum Boarder

GK User
Wed May 21, 2014 11:50 pm
Reply with quote
Report this post
I tryed that before. The problem I found is that the introtext and fulltext inherit the style from body, so I dont know how to override it without change the rest of the body element.

Here is an example : http://demo.gavick.com/joomla25/news/index.php/k2/item. My K2 items are showed in the same way.

Best,
Pablo.
User avatar
Junior Boarder

GK User
Thu May 22, 2014 12:16 am
Reply with quote
Report this post
For example <p> is inside #k2Container, so you have

#k2Container p { ......... }
or
#k2Container .itemIntroText {.......}
or together

Code: Select all
#k2Container .itemIntroText > p {
    color: #FF0000;
}


this would be used only in K2 items.
User avatar
Platinum Boarder

GK User
Thu May 22, 2014 12:02 pm
Reply with quote
Report this post
Exactly what I was looking for. I totally missed that container! I keep reading the docs :)

I can not wait to release the new site!

Thanks,
Pablo.
User avatar
Junior Boarder


cron