WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] data:Images in CSS; automatically add link to css directory (4 posts)

  1. blog-it-solutions
    Member
    Posted 8 months ago #

    Hi,

    I tried to include a data:image in my theme css-file in the following way:

    .sb2logo {
    	background: url("data:image/png;base64,iVBORw0...");
    }

    But if I have a look at my page, WordPress automatically added the link to the css-directory:

    .sb2logo {
    	background: url(""http://www.page.com/wp-content/themes/theme/css/data:image/png;base64,iVBORw0...");
    }

    How to avoid this?

  2. blog-it-solutions
    Member
    Posted 8 months ago #

    No ideas on this topic?

  3. futtta
    Member
    Posted 8 months ago #

    well, autoptimze is to blame, clearly. working on a fix :-)

  4. blog-it-solutions
    Member
    Posted 8 months ago #

    Yes, the behavior is with Autoptimize. Already received a fix from futtta :-)

Reply

You must log in to post.

About this Topic