- Posts: 2
- Thank you received: 0
Inline css and javascript in template - seo
-
alan000
Inactive member -
Topic Author
- New Member
-
Less
More
13 years 3 months ago #14066
by alan000
Inline css and javascript in template - seo was created by alan000
Hi when you check sourcecode of hot relief template 1.7, there is so many inline css and javascript code, why it is not in addicional file and it is inline in template? It makes seo unfriendly page. I am not professional in that field but I think it should be in additional file. Thanks. Alan.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 3 months ago #14077
by ivan.milic
Replied by ivan.milic on topic Re: Inline css and javascript in template - seo
our template does not have much style attributes in it, they mostly come form components and ... Editors in jooma will silently add style attributes when you edit for example article or custom HTML module.
The following user(s) said Thank You: alan000
Please Log in to join the conversation.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6811
- Thank you received: 724
13 years 3 months ago #14084
by milos
Replied by milos on topic Re: Inline css and javascript in template - seo
If you mean about the code in <head> tag, yes, there is some CSS code and it must be there because those values are dynamically selected from template parameters. Once you are happy with the site, you can copy the code from there to the CSS stylesheet file and delete this part in template's index.php file:
Code:
<style type="text/css">
<!--
<?php require(dirname(__FILE__).DS.'/css/template_css.php'); ?>
-->
</style>
The following user(s) said Thank You: alan000
Please Log in to join the conversation.
-
alan000
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
13 years 3 months ago #14096
by alan000
Replied by alan000 on topic Re: Inline css and javascript in template - seo
I'll do that. Thanks for advice Milos

Please Log in to join the conversation.
-
salibert
-
- New Member
-
Less
More
- Thank you received: 0
13 years 2 weeks ago #17329
by salibert
Replied by salibert on topic Re: Inline css and javascript in template - seo
You also can use cssjscompress. Thats a great plugin, it deletes whitespaces and contributes to the onpage Seo.
Please Log in to join the conversation.
Time to create page: 0.163 seconds