Whenever you want to ban/prevent hotlinking your media files and protect your server’s resources and bandwidth you may use the following snippet in the .htaccess file of your main directory of your site.
You have built a new client’s website and you want to change the WordPress logo on the login page (wp-login.php), well there is nothing more easy then this. Add the following code to your theme’s function.php.
This function will register the widget’s area through the ‘widgets_init’ hook. For more specification on register_sidebar please see here. Next step is to set the place where we want to see the widgets to be displayed. […]