Keyword

How to style each page differently in K2?

  • JustBe
  • JustBe's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 3 months ago - 12 years 3 months ago #67005 by JustBe
It seems there is no page class suffix.

Are there classes created specifically for each page?

Is there more information about this?

I played a bit with a padding statement but this is in k2.css file and I think it is not for the page only but for all pages

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

  • JustBe
  • JustBe's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 3 months ago #67006 by JustBe
Ok, I have made a new template. Now I am able to choose another template in K2 for layouts.

But what I don't understand: Don't I need to create a copy of the k2.css file?

I mean, with the new template I can create changes in item.php etc. , basically all php files.

But if I just use one k2.css file then I don't change new layout for one item, I think.

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

More
12 years 3 months ago #67007 by william white
Replied by william white on topic Re: How to style each page differently in K2?
YOu might look at css4k2 from jiliko.net avaliable at k2joom.com.
It lets you have specific k2.css files for each override you create

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

  • JustBe
  • JustBe's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 3 months ago #67008 by JustBe
I was thinking to create new name names in the php files of the template I created.

Then define these in the k2.css file.

In my head it should work (lolz).


Thanks for suggestion!

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


Powered by Kunena Forum