WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lapoguidi
    Member
    Posted 11 months 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 11 months 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. futtta
    Member
    Plugin Author

    Posted 11 months 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 11 months 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

Reply

You must log in to post.

About this Plugin

About this Topic