• Resolved rosco666

    (@rosco666)


    Hi everyone, is there a simple way, without adding new plug ins, to change the “password protected page” text? (This content is password protected. To view it please enter your password below:)
    I would like to have it in German.

    Thank you

    Rosco

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @rosco666

    If you have a way to add some custom PHP code to the site (either a theme functions.php or a custom plugin) this can be achieved using the the_password_form filter hook.

    add_filter( 'the_password_form', 'reitclubvonnordheim_custom_function_the_password_form' );
    function reitclubvonnordheim_custom_function_the_password_form( $output ) {
    	$output = str_replace(
    		'This content is password protected. To view it please enter your password below:',
    		'Dieser Inhalt ist passwortgeschützt. Um es anzuzeigen, geben Sie bitte unten Ihr Passwort ein:',
    		$output
    	);
    
    	return $output;
    }

    (Please excuse the German text if it is incorrect, I used Google Translate)

    Thread Starter rosco666

    (@rosco666)

    Jonathan Bossenger thank you a lot for your answer.
    I am actually scared to put hands on the php files (i am a total incompetent and i′ve build the website following online tutorials and this forum), i was hoping i was just missing some option already included in wordpress.
    At the moment i am using the plugin passster instead of the wordpress included password protection and it is working good

    https://reitclubvonnordheim.de/vertrag

    Thank you again

    Rosco

    • This reply was modified 1 year, 6 months ago by rosco666.
    • This reply was modified 1 year, 6 months ago by rosco666.

    No problem, there are multiple ways to achieve the same result, I’m glad you found something that works for you.

    If your question has been answered, we would love if you would mark this topic as resolved in the sidebar. This helps our volunteers find the topics that still need attention and more people will get helped, possibly like you did.

    Thread Starter rosco666

    (@rosco666)

    Perfect ???

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘To change “password protected page” text’ is closed to new replies.