wordpress更改网址
There are numerous content management systems that thrive these days but none are as prolific as WordPress. Every client wants the ability to change their website at a moment's notice and they want to do it themselves, and again, WordPress is the best fit for that. You fit the client with WordPress, customize it with plugins for the features they need, and give them the login URL...where they would see a WordPress logo...which cheapens the work you've done. Going the extra mile to customize the admin interface for your client will make a world of difference, the most prominent of changes is showing the client's logo at the admin login screen.
如今,有许多内容管理系统蓬勃发展,但没有一个像WordPress那样多产。 每个客户都希望能够在通知后立即更改其网站,并且他们希望自己进行更改,因此,WordPress最适合此功能。 您可以使客户端适合WordPress,并使用其所需功能的插件对其进行自定义,然后为他们提供登录URL ...在该位置可以看到WordPress徽标...这样可以减少您所做的工作。 花更多的精力为您的客户端自定义管理界面将带来与众不同的变化,最显着的变化是在管理员登录屏幕上显示了客户端的徽标。
The logo displayed at the admin login screen is an image but it's displayed via CSS background-image
. To change that image, you'll need to change a CSS selector within admin, and the safest way to do that is with a custom WordPress admin stylesheet:
管理员登录屏幕上显示的徽标是图像,但通过CSS background-image
显示。 要更改该图像,您需要在admin中更改CSS选择器,而最安全的方法是使用自定义WordPress admin样式表 :
// Update CSS within in Admin
function admin_style() {
wp_enqueue_style('admin-styles', get_template_directory_uri().'/admin.css');
}
add_action('admin_enqueue_scripts', 'admin_style');
The selector that WordPress uses or the log is .login h1 a
, so to safely change the logo, the following specificity update is a good bet:
WordPress使用的选择器或日志是.login h1 a
,因此为了安全地更改徽标,以下特性更新是一个不错的选择:
body .login h1 a {
background-image: url('path/to/client-logo.png');
}
The CSS snippet above will change the default WordPress logo to an image of your choosing. You may need to adjust background-size
dimensions to ensure the image displays correctly.
上面CSS代码段会将默认的WordPress徽标更改为您选择的图像。 您可能需要调整background-size
尺寸,以确保图像正确显示。
Most clients wont have a concept of what WordPress is, nor should they need to -- they simply want a website admin panel that looks like it was made just for them...and branding is the easiest way to do that.
大多数客户不会对WordPress是什么有一个概念,他们也不需要-他们只是想要一个看起来像是专门为他们创建的网站管理面板...而品牌化是最简单的方法。
wordpress更改网址