Hey,
Yeah that's also an Elegant Themes template. You won't have to worry yourself with the appending. It's not necessary to use the x? ob_start("ob_gzhandler"); ?x call, it can be simply done with the zlib compression via .htaccess or you can ask your hosting company to turn it on. However from what I read, this is not the optimal way to compress. I can give you all of the needed instructions if you need them, but I can't see why would you want to do that
.
Just in case however, this is what your host have to have:
Code:
[PHP]
zlib.output_compression = On
zlib.output_compression_level = 6
auto_prepend_file = "ct.php" <--- custom name of the file. It's in my root.
short_open_tag = 0
ct.php contains the following code:
[PHP]
Once again, WP-SC reported that this is not the optimal way to compress (they even had a detailed explanation why, but I cannot remember it right now)
Therefore Wp-Super-Cache does the job, with just a few clicks. Be sure you check the box next to "Compress pages so they’re served more quickly to visitors. (Recommended)" in the advanced menu, under the category "Miscellaneous".
Set the cache clearing time to whatever you want, the default is an hour. In addition I use "BWP Minify" (short for Better Wordpress Minify Plugin), which minifies css and js files. Of course to get to the extreme you can redo all images and combine them into sprites but I think that's for speed fanatics
, plus things always get messed up.