• Resolved theupperroomnl

    (@theupperroomnl)


    Hi, the plugin is not working for me. No text changes. I’m using wplm with Dutch as default langauge, could that be it?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author pipdig

    (@pipdig)

    Hi @theupperroomnl,

    Thanks for getting in touch. It looks like the plugin has some issues with multi-language sites using the Divi theme. Unfortunately we can’t access the Divi theme’s code in order to test it since this is a premium theme.

    Currently the plugin looks for the following translation string:

    __('To view this protected post, enter the password below:', 'Divi');

    However this must be incorrect, yet we are not able to check as we do not have access to check. Maybe @elegantthemes can confirm if this is the correct text?

    I just asked Elegant Themes. So hang on. ??
    I also have the same problem of not showing the custom text.

    • This reply was modified 7 years, 1 month ago by Jonathan.
    Plugin Author pipdig

    (@pipdig)

    Thanks @jvdhelder, if we can find the answer we’ll be able to update the plugin to be compatible with Divi asap ??

    Thread Starter theupperroomnl

    (@theupperroomnl)

    Thanks guys! Hope there will be a solution for this!

    Grts Jasper

    Where can I find the string? In which file? I will look via the editor. Much faster. ??

    Plugin Author pipdig

    (@pipdig)

    It is difficult to say, since it could be in different locations. If you are able to search the files, you can look for a filter called ‘the_password_form’. The most likely place for this will be in the functions.php file.

    Hopefully that helps ??

    Jonathan

    (@jvdhelder)

    hi,
    I found this:

    add_filter( ‘the_password_form’, ‘et_password_form’ );

    Jonathan

    (@jvdhelder)

    function et_password_form() {
    $pwbox_id = rand();

    $form_output = sprintf(
    ‘<div class=”et_password_protected_form”>
    <h1>%1$s</h1>
    <p>%2$s:</p>
    <form action=”%3$s” method=”post”>
    <p><label for=”%4$s”>%5$s: </label><input name=”post_password” id=”%4$s” type=”password” size=”20″ maxlength=”20″ /></p>
    <p><button type=”submit” class=”et_submit_button et_pb_button”>%6$s</button></p>
    </form>
    </div>’,
    esc_html__( ‘Password Protected’, ‘Divi’ ),
    esc_html__( ‘To view this protected post, enter the password below’, ‘Divi’ ),
    esc_url( site_url( ‘wp-login.php?action=postpass’, ‘login_post’ ) ),
    esc_attr( ‘pwbox-‘ . $pwbox_id ),
    esc_html__( ‘Password’, ‘Divi’ ),
    esc_html__( ‘Submit’, ‘Divi’ )
    );

    $output = sprintf(
    ‘<div class=”et_pb_section et_section_regular”>
    <div class=”et_pb_row”>
    <div class=”et_pb_column et_pb_column_4_4″>
    %1$s
    </div>
    </div>
    </div>’,
    $form_output
    );

    return $output;
    }
    add_filter( ‘the_password_form’, ‘et_password_form’ );

    Jonathan

    (@jvdhelder)

    this is the complete code

    Plugin Author pipdig

    (@pipdig)

    Thanks @jvdhelder! I’ve just pushed update 1.2. Let me know if it works ??

    Jonathan

    (@jvdhelder)

    Awesome!! It works ?? Could you also at the option to change the button text? Would be nice.

    Thread Starter theupperroomnl

    (@theupperroomnl)

    Nice work! Thanks!

    Plugin Author pipdig

    (@pipdig)

    Great! Glad to here it’s working for you guys.

    @jvdhelder unfortunately it will not be possible to add that option to this plugin. It is a button specifically created in the Divi theme, so could be worth contacting their support team for a direct solution to that.

    Jonathan

    (@jvdhelder)

    Ok, than I will contact divi.

    And another question: is it possible to change the text for a post, a page or a project? Can you add this as an option?

    they are saying:

    Please add the following script to the Divi > Theme Options > Integration > Add code to the <head> of your blog option:

    <script>
    jQuery( document ).ready(function() {
    jQuery(‘.et_submit_button.et_pb_button’).text(‘Inloggen’);
    });
    </script>

    Maybe @theupperroomnl needs it as well. ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Not working’ is closed to new replies.