CSS code on HTML ?

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
6 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6438

    Participant

    Hi

    I check via View Source Html on my site, there is many css code on that html, why you can’t put all css to link instead write it to HTML ? do you know this is have huge effect on SEO ?

    Thanks

    #6439

    Hi!

    By default the plugin tries to generate the CSS into the wp-content/plugins/ajax-search-pro/css/style.instances.css file directory. If this directory has wrong permissions or not writeable, then as a fallback it has to load it into the header as inline CSS – it does NOT affect SEO as the inline CSS is valid as long as it’s presented in the head section of the HTML code.

    To remove the inline CSS from the head, make sure that the wp-content/plugins/ajax-search-pro/css/ directory is writeable – by chmodding it to 755 or 775. If that does not help, then the www-data process might not have the ownership of the directory, and you will have to adjust it via SSH.

    Also, make sure that the Force Inline Styles option is turned off on the Compatibility settings submenu: https://i.imgur.com/C1eQXuc.png

    IMPORTANT: If you sucessfully changed the permissions, then save the Compatibility settings submenu, to have the stylesheets re-generated.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.