Keyword

How to override the k2.backend.css ?

More
4 years 8 months ago #175167 by John
Replied by John on topic How to override the k2.backend.css ?
I also require some help with this. I'll explain my steps first:

1`. I copied the contents of the folder /components/com_k2/templates/ and pasted it into /templates/my template/html/com_k2/;

2. I then took the "default" folder and was placed in the following path: /templates/my template/html/com_k2/default

3. In the default folder I added the following code to both category-item.php and item.php

// calling in custom style sheet
$document = JFactory::getDocument();
$document->addStyleSheet("/templates/mytemplate/html/com_k2/default/customK2.css",'text/css',"screen");

I'm trying to increase the line height of paragraph text and have exagerrated this to be 200px; I am not seeing the changes when I reload.

What am I missing?

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

More
4 years 8 months ago #175175 by JoomlaWorks
Replied by JoomlaWorks on topic How to override the k2.backend.css ?
@John This is not related to styling the K2 item form when using frontend editing.

Follow the basic guide for copying K2 template files to be used as overrides (getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates) and then make any CSS changes inside your template's main CSS file. No need to append any other CSS file (in your case, the path is probably wrong and the case matters - so customK2.css is different to customk2.css).

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum