Keyword

How to configure CSS in K2 custom templates

  • NUNO ALEXANDRE NOGUEIRA
  • NUNO ALEXANDRE NOGUEIRA's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 1 week ago #104098 by NUNO ALEXANDRE NOGUEIRA
How to configure CSS in K2 custom templates was created by NUNO ALEXANDRE NOGUEIRA
Hello,

I've created 2 K2 custom templates. So far, by editing item.php, I'm able to change the normal layout of K2 and introduce content inside the items.

However, I can't seem to edit the CSS to align right, left, etc.

In which folder should I add the custom css for each template?

And what name should I give it?

Thanks in advance for any help!

:)

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

More
12 years 1 week ago #104099 by Francisco Caivano
Replied by Francisco Caivano on topic Re: How to configure CSS in K2 custom templates
HI,

You should first copy the CSS file from K2 following the MVC way ....

So, the file in here:
components/com_k2/css/k2.css

Needs to be moved in here:
templates/your-template/css/k2.css

The same for "k2.print.css" if you need it.


Once there, you can edit "k2.css" as it will be an override of K2 Styling for your default template...


Hope it helps!

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

  • NUNO ALEXANDRE NOGUEIRA
  • NUNO ALEXANDRE NOGUEIRA's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 6 days ago #104100 by NUNO ALEXANDRE NOGUEIRA
Replied by NUNO ALEXANDRE NOGUEIRA on topic Re: How to configure CSS in K2 custom templates
Hi Francisco,

It didn't work.

But I managed to edit the components/com_k2/css/k2.css and it worked.

Thanks anyway!

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


Powered by Kunena Forum