× Discussion about Sparky Framework and other free Joomla templates.

Topic-icon Inline css and javascript in template - seo

More
6 years 4 months ago #14066 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 or Create an account to join the conversation.

More
6 years 4 months ago #14077 by ivan.milic
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 or Create an account to join the conversation.

More
6 years 4 months ago #14084 by milos
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:
<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 or Create an account to join the conversation.

More
6 years 4 months ago #14096 by alan000
I'll do that. Thanks for advice Milos ;)

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

  • salibert
  • salibert's Avatar
  • Visitor
  • Visitor
6 years 1 month ago #17329 by salibert
Replied by salibert on topic 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 or Create an account to join the conversation.

Time to create page: 0.143 seconds