• Hi,

    I want to change the default WP text on one of the pages. Can you tel me where I find this text in the code, so I can edit it..

    “You do not have sufficient permissions to access this page.”

    It′s specifically an error page when a user does not have privileges to access a particular page.

    Thanks.

Viewing 1 replies (of 1 total)
  • Something like:

    function my_password_form() {
    	global $post;
    	$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
    	$output = '<div class="password-form">
    	<p class="protected-text">' . __('This post is password protected. To view it, please enter your password below:', 'theme_textdomain') . '</p>
    	<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post">
    	<p><label for="' . $label . '">' . __('Password:', 'theme_textdomain') . ' </label> <input name="post_password" id="' . $label . '" type="password" size="20" /> <input type="submit" name="Submit" value="' . esc_attr__('Submit', 'theme_textdomain') . '" /></p></form></div>';
    	return $output;
    }
    if (is_page( 'page_slug' ) ) add_filter('the_password_form','my_password_form');

    in your theme’s functions.php file should work. What theme are you using? Where did you download it from?

Viewing 1 replies (of 1 total)
  • The topic ‘Change Default WP Text’ is closed to new replies.