WordPress.org

Forums

Autoptimize
[resolved] Autoptimize remove inline CSS from head tag (4 posts)

  1. lapoguidi
    Member
    Posted 2 years ago #

    Hi, there's a way to keep inline CSS inside the head tag?
    If I enable Autoptimize CSS optimization this is removed and my style gone.
    Thanks for helping me.

    Lapo

    http://wordpress.org/plugins/autoptimize/

  2. lapoguidi
    Member
    Posted 2 years ago #

    Please forget the question I wrote before... The inline CSS is transposed inside the result cached php file, the problem is that I'm using Source Sans Pro font and the minifier remove the spaces so the name is SourceSansPro so not recognized :)
    Cause found, Now I need to solve the problem hehe
    Suggestions appreciated

    Lapo

  3. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    OK, suggestion; use Source%20Sans%20Pro in the fontfile-name. URL's on the web don't have spaces in them, this isn't obvious in browsers because the auto-replace spaces with %20's.

    hope this helps,
    frank

  4. lapoguidi
    Member
    Posted 2 years ago #

    Thanks Frank,
    I solved adding a single quote at the end and at the beginning of the font name.
    Thank you very much!

    Lapo

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Autoptimize
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic