在WordPress注册表中添加自定义按钮

在WordPress注册表中添加自定义按钮,wordpress,wordpress-hook,Wordpress,Wordpress Hook,我试图在wordpress注册表中添加一个按钮,但按钮的位置不符合我的要求。它看起来像下图 但我想要像这样的东西 下面是我的代码 public function init() { global $mySetting; $mySetting = get_option('my_options'); add_action('register_form', [$this, 'my_registration_button']); add_action('login_form',

我试图在wordpress注册表中添加一个按钮,但按钮的位置不符合我的要求。它看起来像下图

但我想要像这样的东西

下面是我的代码

public function init()
{
   global $mySetting;
   $mySetting = get_option('my_options');
   add_action('register_form', [$this, 'my_registration_button']);
   add_action('login_form', [$this, 'my_registration_button']);
}

public function my_registration_button()
{
?>
    <p><a href="#" class="button button-primary">My Button</a></p>
<?php
}
public function init()
{
全球$mySetting;
$mySetting=get_选项(“我的_选项”);
添加操作('register_form',[$this,'my_registration_button']);
添加操作('登录表单',[$this,'我的注册按钮');
}
公共功能我的注册按钮()
{
?>


你试过在“我的”按钮上应用float:left吗?是的,但没有。幸运的是,只看到图像,很难从解决方案结束时进行反复试验。最好发布注册表单的css和html。我尝试了css,但目前代码中没有css。