Important Snippets You Should Implement In Every Website

| Last Updated: | In: WordPress Snippets


In today’s post i will explain some important code snippets which you should know and need to implement in every website.

Enable shortcodes in widgets

You can use your plugin shortcodes in your widgets like the way you use them in your posts and pages. SEO Friendly URL Using htaccess File Change the admin login logo.

Change the admin login logo

Use above code in your function.php file. This is the best way to brand your wordpress website. Enable Gzip Compression Using .htaccess

Disable self trackbacks
Copy paste below code in your current active theme’s functions.php page. This code will disable seft trackbacks functionalities from your WordPress website.

Add this snippets in your function.php file. This snippet keeps your WordPress site from pinging itself when you create a internal link in your site.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , , ,