For developers of plugins or themes, it is important to provide the included CSS (stylesheets) files to the user in a compressed or minified version. This mainly benefits the page speed of the website and is very helpful for the search engine optimization as well as for the user experi ...
PHP
Minify and compress Javascript files in PHP
Loading time is an important factor in search engine optimization and for the user experience. Especially for theme developers, it’s important to compress or minimize all embedded javascript files for live use on a web page. How can I compress Javascript files? The following PHP ...
Convert HEX color to RGBA color code in PHP
While working with theme or plugin options, in some cases we need to convert a hex (hexadecimal) color code, which we get from a color picker field to the corresponding RGBA color code, e.g. to get a RGBA color value with the transparency for using in CSS. How to convert hex to RGB or ...
Customize the default WordPress Image Compression
WordPress uses its own compression for images that are uploaded directly into WordPress. This happens automatically every time you upload an image. By default, the compression level of 82% is used. This ensures that the file size of images is reduced, but the image quality is not compr ...