Keyword

How to override the k2.backend.css ?

More
2 weeks 5 days ago #175167 by John
John replied the 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.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 4 days ago #175175 by Fotis
Fotis replied the 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).

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum