Important Snippets You Should Implement In Every Website

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.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.


Article Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.