Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: secure password range

Discussion in 'Misc WordPress Requests' started by Shaylee, Jan 10, 2018.

  1. Shaylee


    Reply To: secure password range, by Shaylee

    I would send the theme developers a message: https://colorlib.com/wp/forums/ and let them know you are getting this error.

    In the meantime if it were me I would look through the theme template files and see if I could find code like this:

    function my_password_form() {
    global $post;
    $label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
    $o = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post">
    ' . __( "To view this protected post, enter the password below:" ) . '
    <label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" maxlength="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" />
    return $o;
    add_filter( 'the_password_form', 'my_password_form' );

    [Moderated: Code formatted. See https://make.wordpress.org/support/handbook/forum-welcome/#post-code-safely]

    That I could edit to make sure those <p> tags were removed.

    Also check this out: https://codex.wordpress.org/Using_Password_Protection

    Reply To: secure password range

Share This Page

Monarch Social Sharing Plugin