Inline css and javascript in template - seo

  • alan000
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 3 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 to join the conversation.

More
13 years 3 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 to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
13 years 3 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:
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
  • New Member
More
13 years 3 months ago #14096 by alan000
I'll do that. Thanks for advice Milos ;)

Please Log in to join the conversation.

  • salibert
  • New Member
  • New Member
More
13 years 2 weeks ago #17329 by salibert
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
Powered by Kunena Forum