WordPress

WordPress Custom Code

Where to add custom code in WordPress

Writing custom code for WordPress may be easy, but you should carefully add your code at the correct place to keep it clean and easily maintainable.

Enable browser caching in WordPress using htaccess

Browser caching for all types of files can be easily done using Apache's .htaccess file. This simple configuration results in a faster website, less consumption of bandwidth and better user experience.