K2 don't use templates override

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Aug 19, 2014 8:22 pm
Reply with quote
Report this post
Hi!
I have a problem.
I installed news2 template, but k2 don't use templates in templates/gk_news2/html/com_k2/templates
Joomla don't see it.
It displays only default template:

Image

But I have several templates in templates/gk_news2/html/com_k2/templates

So, k2 looks awful...

Image
User avatar
Expert Boarder

GK User
Tue Aug 19, 2014 8:45 pm
Reply with quote
Report this post
I found, that it uses template override, but don't uses k2.css from

/templates/balashiha-online/css/k2.css

(I renamed basic template)
User avatar
Expert Boarder

GK User
Wed Aug 20, 2014 9:33 am
Reply with quote
Report this post
I found, that template don't loads k2.css

I opened file head.php

Removed code

Code: Select all
if(!file_exists(JPATH_SITE.DS.'components'.DS.'com_k2'.DS.'helpers'.DS.'route.php')) {
   $this->API->addCSS($this->API->URLtemplate() . '/css/k2.css');
}


and add line

Code: Select all
$this->API->addCSS($this->API->URLtemplate() . '/css/k2.css');


Now k2 looks fine.

It very strange... Your template don't loads k2.css

I have a latest k2 version installed.
User avatar
Expert Boarder


cron