dputlf5431 2018-02-27 04:29
浏览 83
已采纳

如何向Wordpress注册页面添加更多信息?

I am wanting to add a small amount of text to the websites registration page, but as simple as this may sound I am having trouble. The website uses BuddyPress & runs on the Storefront Theme.

The image shows where I am wanting to add the text. I would imagine this could be done from inside my functions.php but unsure how to do this. Any advice?

Image where the text needs to be displayed

  • 写回答

1条回答 默认 最新

  • dq13733519262 2018-02-27 07:22
    关注

    I would imagine this could be done from inside my functions.php but unsure how to do this.

    Yes, that's correct.

    And here's a code snippet that will add the custom message as you highlighted in the screen capture you provided.

    (the HTML code is just an example; feel free to edit the class, wrap the P in a DIV, etc.)

    // Add custom HTML before the "Complete Sign Up" button in the "Profile Details"
    // column on the BuddyPress registration page.
    add_action( 'bp_signup_profile_fields', function() {
        // Start editing below.
        ?>
            <p class="notice-check-inbox">
                Please remember to check your emails and confirm registration for a
                <strong>10% discount voucher</strong>!
            </p>
        <?php
        // End editing.
    } );
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧