Password protected page error
-
Hi
Can somebody help me? I’ve tried to change the text “password protected” to norwegian in the theme functions.php and I used this code:
<?php
add_filter( ‘the_password_form’, ‘custom_password_form’ );
function custom_password_form() {
global $post;
$label = ‘pwbox-‘.( empty( $post->ID ) ? rand() : $post->ID );
$o = ‘<form class=”protected-post-form” action=”‘ . get_option(‘siteurl’) . ‘/wp-pass.php” method=”post”>
‘ . __( “This post is password protected. To view it please enter your password below:” ) . ‘
<label for=”‘ . $label . ‘”>’ . __( “Password:” ) . ‘ </label><input name=”post_password” id=”‘ . $label . ‘” type=”password” size=”20″ /><input type=”submit” name=”Submit” value=”‘ . esc_attr__( “Submit” ) . ‘” />
</form>
‘;
return $o;
}
?>Now the website is blank and I can’t log in to the site or change the CSS because all the sites (the website and dashboard) is blank. It seems like all is gone. The site is https://rhetorica.uia.no. Can somebody try to help me?
- The topic ‘Password protected page error’ is closed to new replies.