WordPress Tips and Tricks 2018

Now a days WordPress become a most popular platform for blogger. Almost every blogger prefer WordPress because of its simplicity, easy to use, SEO friendly and robust. If you are the owner of WordPress blog or you are planning to make your blog in WordPress then this article is for you.In this article am going to show you WordPress tips and tricks that will help you to make your WordPress blog beautiful without using any plugins.

1: How to Remove login shake effect

WordPress has default functionality that when the user enters wrong username or either password error message will display along with shake effect. What if we want to remove shake effect here is a snippet to remove shake effect when an error occurs.

2: Change WordPress login logo

Default WordPress Login Page comes with WordPress logo, but did you know that we can change WordPress login logo in few seconds.
To change WordPress login logo from your WordPress login page open functions.php file from theme folder and paste below code.

3: Remove WordPress version number

Your WordPress version number is visible to everyone, so they can easily know which version you are running and this footprint might be a security leak. With every new WordPress version release, WordPress developers also publish previous versions bugs that resolve. so if you are using the old version and your version is publicly visible then your site is not secure.

To WordPress version number appears in three areas.

1.Generator meta tag in header

1

<meta name=“generator”content=“WordPress 3.3.2”/>

2.Generator tag in RSS feeds

1

<generator>http://wordpress.org/?v=3.3.2</generator>

3.Query string o scripts and css

1

script.js?ver=3.3.2

Copy and paste below snippet into functions.php file to remove WordPress Version number

Note: As Matt Mullenweg pointed simply hiding your WordPress version number will not make your WordPress secure

4. Display WordPress error in error log

For developers its good to display errors in error log. so in this step, we are going to show you how to display WordPress error in error log.

Follow Below steps:

Open wp-config.php file from your root folder.

Find below code in wp-config.php file

1

define(‘WP_DEBUG’,false);

and change value false to yes.

3. And in final step add path where you want to create log file

1

2

@ini_set(‘error_log’,dirname(__FILE__).‘/wp-content/logs/log.log’);

/* path to server-writable log file */

5.Move wp-config.php file to custom location

wp-config.php file is one of the most important core WordPress file in which our database configuration and other information are stored. WordPress has default structure and every WordPress developer knows wp-config.php file is located in root folder. So for security purpose its better to move wp-config.php file to custom location where hacker can’t reach.