• Hi,
    I have problem with changing the info message. If I have changed the info message, it shows still standard info “This content has restricted access, please type the password below and get access.”

    And next, how can I change the button description “GET ACCESS”?

    Thank you for your support and have a nice Holliday.

    BR,
    Miloslav

    https://wordpress.org/plugins/access-category-password/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jojaba

    (@jojaba)

    Thanks for that feedback.
    I will fix this in next release…
    To change “GET ACCESS” text, I have to provide a english .po file that you should edit but tis wouldn’t be the best way to handle this because on next plugin update, your changes will be overwritten.
    Another solution would be to replace the string using JavaScript or jQuery dynamically after page load.
    jQuery("input[value='GET ACCESS']").prop("value","THE TEXT YOU WANT");
    To add this line in your templates, you have to add this in your footer.php template file just before the </body> tag :

    jQuery(document).ready(function() {
       jQuery("input[value='GET ACCESS']").prop("value","THE TEXT YOU WANT");
    })

    Ok, not he best way to do it, but loading a .js file just for on line is wasting bandwidth in my opinion (if you load a js file anyway, you can add the required line to it). If you want to do it the right school way go here : http://stackoverflow.com/a/12025482

    Plugin Author jojaba

    (@jojaba)

    Access Category Password version 1.3 has been released.
    You can now define the validation button text 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with settings (translation)’ is closed to new replies.