Hey everyone
I use a “password protected page” plugin and used this code in my functions.php to change its text:
function custom_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’ ) ) . ‘” class=”post-password-form” method=”post”>’ . __( “Diese Seite ist passwortgeschützt. Gerne laden wir Sie ein, sich mittels dem von uns zugestellten Passwort zum Information Memorandum einzuloggen.” ) . ‘
<label for=”‘ . $label . ‘”>’ . __( “Password:” ) . ‘ </label><input name=”post_password” id=”‘ . $label . ‘” type=”password” size=”16″ /><input type=”submit” name=”Submit” value=”‘ . esc_attr__( “Submit” ) . ‘” />
</form>
‘;
return $o;
}
add_filter( ‘the_password_form’, ‘custom_password_form’ );
It worked but if you have a look at the screenshot below, the text isn’t readable since its hidden behind the title. Can someone tell me how to move it down? Also I’d like a blank white page and the footer smaller, as small as on the other pages (I posted the link to my website below).
[img]http://up.picr.de/25483904sb.jpg[/img]
Thanks for the help.
Aline
Hi Aline,
On what page can we see the issue? I couldn’t see a password prompt on the page you linked to.
Regards,
Rikard
Go to “Informationsmemorandum” and hover over it, some more menu points come up, again don’t click on them, hover on the first one “Wohn- und Geschäftshäuser Kreis 4”, and on the following field that shows up “Schöntalstrasse 19” for example you can click on, then the protected page appears.