WordPress.org

Support

Support » Plugins and Hacks » [Resolved] base64 code in theme

[Resolved] base64 code in theme

  • justinblayney
    Member

    @justinblayney

    Hello, I downloaded a fresh copy of the pro and I notice base64 code in the css, is this supposed to be there?

    classic theme – iphone – style.css
    line 2595 and others

    #addToHomeScreen .addToHomeShare {
    	display:inline-block;
    	width:18px;
    	height:15px;
    	background-repeat:no-repeat;
    	background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAPCAQAAABDj1eZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUdJREFUKFNtkLtLw1AYxS/qJLhXVKr2ZRulUNtiqgSb3CziICI6ucTFVYcOnaQOFRwUnNTRwUWXgpP/QdHNUEQUHGxofYBTlRs83iZNjKTncOGe7/vx3QchXUWn6FL3jhfKUdCCr5zuifV5oDiHQM+c+CIhiiCSWNu08iq9oHXKLAiqrgR4UXqlOEYZt++ExEL0wW7+OW0G10muLv9gmqfe5FAWKmTMYQYiFL7PYwyLOD8lSjNh2gdnPzMII4QUBxc4OothbAF7GCBKQ0YbSWyPQsIhqvetS+y0ygGMo/KFZfviDvR4AhwgZU9dGYnA0J/6ndc15i3ouYIMcVVUcEXIoOxCeRCfwP8sXBSdjtpUv/1QW+K16kCCIUC4id9Fa0JtkluwVkSfqPL6RwfSDA0aNlx7k/bWgViB7bMS2/1vk5sdsZLN/ALSuL3tylO4RAAAAABJRU5ErkJggg==);
    	background-size:18px 15px;
    	text-indent:-9999em;
    	overflow:hidden;

    http://wordpress.org/plugins/wptouch/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Samuel Wood (Otto)
    WordPress.org Tech Dude

    @otto42

    That sort of base64 in the CSS is known as a data uri, and it is a way to encode small images into CSS. This has a number of speed advantages for small image files, so yes, it’s legit.

    justinblayney
    Member

    @justinblayney

    thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] base64 code in theme’ is closed to new replies.