- Posts: 45
COMMUNITY FORUM
Replace CSS
- Pietro Sferrino
-
Topic Author
- Offline
- Senior Member
Less
More
14 years 2 months ago #94183
by Pietro Sferrino
Replace CSS was created by Pietro Sferrino
Hi Guys !!
Why I have so much problems with K2 ???? :( :(
I would like to replace the K2 default CSS with the Template one ... But I had no success !!
Do You know I can I do this ??
Thank You.
Pietro
Why I have so much problems with K2 ???? :( :(
I would like to replace the K2 default CSS with the Template one ... But I had no success !!
Do You know I can I do this ??
Thank You.
Pietro
Please Log in or Create an account to join the conversation.
- Olivier Karfis
-
- Offline
- Elite Member
14 years 2 months ago #94184
by Olivier Karfis
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Replied by Olivier Karfis on topic Replace CSS
Hi.
Some K2 elements, titles, etc. have different CSS styles than what your Joomla templates is providing you and that's why you are seeing a difference in layouts.
Using Firebug, pull up a sample Joomla article and sample K2 article in 2 windows. For each main element (like headers, images, etc..) inspect what style is assigned to it and note the differences.
Then 2 ways to go about it:
1. modify the k2.css file with the style info from your Joomla template's css
2. Modify the k2 views (item.php, category.php, etc) to use the same style names as the ones in your joomla template's css
NOTE: #1 is really the solution I recommend and a lot easier to maintain going forward (be sure to use template overrides simon.getk2.org/index.php?option=com_k2&view=item&id=91:templating&Itemid=5 ).
Good luck
--Olivier
Some K2 elements, titles, etc. have different CSS styles than what your Joomla templates is providing you and that's why you are seeing a difference in layouts.
Using Firebug, pull up a sample Joomla article and sample K2 article in 2 windows. For each main element (like headers, images, etc..) inspect what style is assigned to it and note the differences.
Then 2 ways to go about it:
1. modify the k2.css file with the style info from your Joomla template's css
2. Modify the k2 views (item.php, category.php, etc) to use the same style names as the ones in your joomla template's css
NOTE: #1 is really the solution I recommend and a lot easier to maintain going forward (be sure to use template overrides simon.getk2.org/index.php?option=com_k2&view=item&id=91:templating&Itemid=5 ).
Good luck
--Olivier
Owner of www.FrenchToday.com - K2 fan and freelancer, runs the Joomla/K2 tip site: www.yanaku.com
Please Log in or Create an account to join the conversation.
- Pietro Sferrino
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
14 years 2 months ago #94185
by Pietro Sferrino
Replied by Pietro Sferrino on topic Replace CSS
Great! Thank You ... I'll try !! ^_^
Please Log in or Create an account to join the conversation.
- Pietro Sferrino
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 45
14 years 2 months ago #94186
by Pietro Sferrino
Replied by Pietro Sferrino on topic Replace CSS
Please Oliver ...
Maybe, I'll help me ...
Do You know how to solve this question, about adding a personal link on the K2 item-bar?
community.getk2.org/forum/topics/add-link-to-the-item-linkbar?xg_source=activity
THANK YOU.
Pietro
Maybe, I'll help me ...
Do You know how to solve this question, about adding a personal link on the K2 item-bar?
community.getk2.org/forum/topics/add-link-to-the-item-linkbar?xg_source=activity
THANK YOU.
Pietro
Please Log in or Create an account to join the conversation.