最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - How to change wordpress registration form submit button value?

programmeradmin3浏览0评论

I am trying to create a website with wordpress and I want to change the text value of the submit button (included in the pictures). When I change its' text value while inspecting the element, it changes successfully, but when I do it with custom CSS, it fails. What code should I write to the custom CSS file to successfully change the buttons' text value?

I am trying to create a website with wordpress and I want to change the text value of the submit button (included in the pictures). When I change its' text value while inspecting the element, it changes successfully, but when I do it with custom CSS, it fails. What code should I write to the custom CSS file to successfully change the buttons' text value?

Share Improve this question edited Dec 31, 2019 at 16:04 butlerblog 5,1213 gold badges28 silver badges44 bronze badges asked Dec 31, 2019 at 11:41 KajusKajus 1
Add a comment  | 

2 Answers 2

Reset to default -1

you would have many options to change button text like jquery and if you know about that registration form from where it is coming from.

By using jquery you would have to add below code at the end of the footer.php file like as below:

<script>
  $(document).ready(function(){
    // Change text of input button
    $(".ur-submit-button").prop("value", "Input New Text");
   // Change text of button element
   $(".ur-submit-button").html("Button New Text");
<script>

Use this Jquery,

$(document).ready(function() {
    $(".ur-submit-button").text('your button text');
});
发布评论

评论列表(0)

  1. 暂无评论