Important Snippets You Should Implement In Every Website

Prem Tiwari - - 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.

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

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.