Hello everyone, welcome you to the KDJ Guru blog. This post is about WordPress which is the most popular content management system in the world. Maybe you are an experienced WordPress developer, newbie or someone who is going to make a website using WordPress. Whoever you are, this post series will be very helpful for you to save your time, save your money, increase the speed of the website, decrease more treats form other parties and much more…
Let’s see what I have today,
- Remove Your WordPress Version Number.
As a WordPress site owner/developer, you must always update your WordPress website to the latest version. Sometimes, you may able to be forgotten that thing. If it is, most of the hackers will try to get an advantage from bugs of the previous versions.
However, if you need to hide your version number from WordPress, this is the code you must include in the functions.php file. (Appearance –>Theme Editor).
2. Add Customized CSS File.
Sometimes, you may need to have a custom CSS file to style your theme in your way without changing original theme files. for adding a custom CSS file you must make a file called custom.css in the root directory of your theme (wp-content/themes/theme_name/custom.css) and paste the following code into the functions.php file. Then you will able to write your own CSS styles to make your theme better.
3. Add a Custom Logo for WordPress Dashboard
Back-End is designed with WordPress designs. But this way to replace the logo on the WordPress dashboard. following is the code which you must paste into functions.php.
Before that, you must upload a custom logo for your images directory and make sure it is 16×16 pixels. If it’s on the right location you can try the following code now.
4. Change Background Color Randomly
If you need to show a different background color on each page load, this is the method which you can use.
You must add the following code lines to functions.php of your theme.
After that, you must edit the header.php file. first, start with finding the <body> tag and replace it with the following code. Then you will see the output in action.
5. Hiding Login Errors in WordPress
Hiding logo errors in WordPress will help you to secure your website from hackers. If login errors are enabled, we can get what is wrong or not. As we do, hackers also can guess something with those errors. By the way, disabling login errors is not an essential option. But, following is the code on functions.php which you can use to hide login errors. After that, you will see a common error which is hard to guess the wrong one is whether password or username.