where to add <link> to css for category layout

More
13 years 1 month ago #19249 by igcorreia
It worked. Perfectly. I am becoming a coder thanks to all of you guys.

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

More
13 years 1 month ago #19250 by yopyop001
Hi,

Here is another solution (for local css ad js files only):

In the category.xml of your template folder you have this tags :
Code:
<csscategory> <file>css/category.css</file> </csscategory> <jscategory> </jscategory>

So you can add :
Code:
<csscategory> <file>css/category.css</file> <file>css/my_style.css</file> </csscategory> <jscategory> <file>js/my_script.js</file> </jscategory>

Files are loaded in the <head> of the category view.

Regards

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

More
13 years 1 month ago #19252 by igcorreia
@yopyop001 but I tried that on but it didnt work with EXTERNAL Javacripts :/ can you confirm this?

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

More
13 years 1 month ago #19253 by yopyop001
Yes, you are right.

For external javascript, you have to use code of previous posts.

Bye

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

More
13 years 1 month ago #19256 by igcorreia
Perfect. But it is saver to download the JS, put it in the folder and use your technique.

Thanks.

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

More
13 years 1 month ago #19358 by ViveLeFlexicontent
Oh I tried the xml myself before I started this topic, but didn't succeed, must've done something wrong.

Btw, it's better not to load javascript in the head. Pagespeed says this slow down page rendering.
And you can use the <script> to load it, it doesn't cause html validation errors, unlike css.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.485 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline