官术网_书友最值得收藏!

Customizing WordPress admin login page

If you're creating a WordPress web site for a client, you'll probably like to make his or her login page a bit more personal than the default. In this recipe, we'll see how to make a custom admin login page for your clients, or even for yourself.

While writing this recipe, I was tempted to provide you two ways to customize your admin login page: with the help of a plugin, and by using a hack. But in the hack method, you are required to edit the WordPress core files, this really isn’t a good idea. For example, suppose you hack the WordPress core successfully, but when you update your WordPress installation your hacks will be replaced by the new WordPress files. You'll have to hack again the new version, and so on.

This is the reason why, in this recipe, we shall discuss only about the plugin solution, which I think is really the best for the current scenario. The following screenshot shows a custom admin branding displayed on www.womantribune.com.

Customizing WordPress admin login page

How to do it...

Creating a custom login panel is easy using the WordPress custom admin branding plugin and your creativity. Just carry out the following steps to get started.

Carry out the following steps in order to get the plugin:

  1. The plugin we shall be using to rebrand or admin login page is called WordPress custom admin branding and can be downloaded for free at the following link: http://pressingpixels.com/wordpress-custom-admin-branding/
  2. Once you have saved it in your hard drive, unzip it, and upload the custom_branding file into your wp-content/plugins directory. Login to your WordPress dashboard and activate the plugin.
  3. Once activated, you'll be able to notice some changes. For example, in your WordPress dashboard your blog name has been replaced by Pressing Pixel (the plugin author's blog) logo. You should also log out to see your new login form—it also will have the Pressing Pixel logo. Don't worry, we shall learn how to replace this logo with yours!

Carry out the following steps in order to create your own images:

  1. Now that we have a functional plugin, it's time to create and use our very own images. Luckily, the plugin author provided some PSD files that we can edit in a program such as Adobe Photoshop or The Gimp.
  2. Under the custom_branding directory, you'll find a psd_image_template directory which contains 3 PSD image templates—custom_footer.psd, custom_header.psd, and custom_login.psd. The plugin author has also provided useful information, such as the part of the login form that may be hidden by the forms elements.
  3. Once you have edited the PSD files, export it as custom_login.jpg, custom_header.png, and custom_footer.png. Upload it to your wp-content/plugins/custom_branding/images directory and replace the existing images.

How it works...

Using WordPress hooks, the Custom Admin Branding plugin redefine the CSS as well as the images used in WordPress login screen, which are replaced by your custom images.

主站蜘蛛池模板: 寿光市| 峨眉山市| 吉木乃县| 南康市| 金秀| 定安县| 咸丰县| 白城市| 陈巴尔虎旗| 门头沟区| 武定县| 万山特区| 长沙市| 大足县| 抚松县| 丽水市| 包头市| 揭西县| 南陵县| 临朐县| 宜昌市| 贵州省| 仪陇县| 陕西省| 吉安市| 都昌县| 开平市| 五指山市| 邵阳县| 湖南省| 温州市| 德州市| 伊川县| 宁安市| 彭泽县| 嫩江县| 汤阴县| 抚顺县| 屏南县| 汉川市| 阳泉市|