Include CSS file in category_item.php file?

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu May 08, 2014 12:49 am
Reply with quote
Report this post
Hi,
I would like to include css file in category_item.php so that only when I list items in categories that css is fired up. Is that possible and if it is, please advice how?

Thanks,
Gorast
User avatar
Platinum Boarder

GK User
Thu May 08, 2014 4:49 am
Reply with quote
Report this post
Hi,
by default is not possible,
but you can try to: Customize that file to upload css file or just insert css inside - second option should be easy.
Sorry, but we don't help in such a php customizations /tunning/ so I can give you only general tips.
User avatar
Platinum Boarder

GK User
Thu May 08, 2014 4:54 am
Reply with quote
Report this post
p.s.
If those category items you have added inside menu items of course there is another way.
Because according to our template framework you can add extra class suffix to them.

p.s.
last option check : JCC - JS CSS Control plugin
Project site: http://joomla-extensions.kubik-rubik.de ... ss-control
or similar plugin.
User avatar
Platinum Boarder

GK User
Thu May 08, 2014 9:01 am
Reply with quote
Report this post
Hi,
Can you at least tell me:

What file handles the css files?
What is the syntax to add css file in php?

Thanks,
Gorast
User avatar
Platinum Boarder

GK User
Thu May 08, 2014 8:11 pm
Reply with quote
Report this post
What file handles the css files?

In most cases this one: gk_news2\layouts\blocks\head.php

What is the syntax to add css file in php?

There are not real php files - so you can mix html with php
So if you talk about overridden views in html folder on each template
in theory you can try to use this tip: http://designmodo.com/html-imports/
User avatar
Platinum Boarder


cron