Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Sparky Framework and other free Joomla templates.

Topic-icon Inline css and javascript in template - seo

More
5 years 3 months ago #14066 by alan000
alan000 created the topic: Inline css and javascript in template - seo
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
5 years 3 months ago #14077 by ivan.milic
ivan.milic replied the 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.

More
5 years 3 months ago #14084 by milos
milos replied the 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:
<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.

More
5 years 3 months ago #14096 by alan000
alan000 replied the 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
  • salibert's Avatar
  • Visitor
  • Visitor
5 years 1 week ago #17329 by salibert
salibert replied the 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.132 seconds

Links, Partners and Social Media