admin管理员组文章数量:1334327
I have no idea what function to use to add this line to the wp-login.php header:
<meta name="viewport" content="width=device-width, user-scalable=no">
I have tried add_action('wp_head', 'change_this_name_of_your_function');
until I have found out that the wp-login.php
file uses a different header. Thanks for your help!
I have no idea what function to use to add this line to the wp-login.php header:
<meta name="viewport" content="width=device-width, user-scalable=no">
I have tried add_action('wp_head', 'change_this_name_of_your_function');
until I have found out that the wp-login.php
file uses a different header. Thanks for your help!
1 Answer
Reset to default 1wp_head
is for adding stuff in the head
of the public/non-admin side of a WordPress site. For the standard login page for the admin screens, you can use login_head
:
add_action( 'login_head', function () {
echo '<meta name="viewport" content="width=device-width, user-scalable=no">';
} );
本文标签: How to add some lines to the wploginphp header via functionsphp
版权声明:本文标题:How to add some lines to the wp-login.php header via functions.php? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742368729a2461799.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论