-
2016/11/16 9:59 오전 #37988
pagerestrict 플러그인을 받았습니다.
이 플러그인은 로그인되어있는 사람만 페이지에 접근할수있게 막아주는 플러그인인데요.
로그인이 되어있지 않은상태에서 페이지에 접근하려고 하면 로그인창이자동으로 페이지에 뜨게됩니다.
그런데 패딩없이 뜨게되어 왼쪽위끝쪽으로 로그인창이 떠서 메뉴에 가려져 보이지가않네요. 패딩을 추가하여 밑쪽으로 당기고싶은데 어떻게해야하나요?
로그인시 끌어오는 소스입니다. php 파일
// Add headers to keep browser from caching the pages when user not logged in
// Resolves a problem where users see the login form after logging in and need
// to refresh to see content
function pr_no_cache_headers () {
if ( !is_user_logged_in() )
nocache_headers();
}// gets standard page content when page/post is restricted.
function pr_get_page_content() {
$pr_page_content = ‘‘ . pr_get_opt ( ‘message’ ) . ‘
‘;
if ( pr_get_opt ( ‘loginform’ ) == true ) :$errors = ”;
if ( isset( $_GET[‘wp-error’] ) )
{
$errors = strip_tags( $_GET[‘wp-error’] );
$errors = str_ireplace( ‘Lost your password?’, ‘Lost your password?‘, $errors );
$errors = ‘‘ . $errors . ‘
‘;
}$user_login = ”;
if ( !isset( $user_login ) && isset( $_GET[‘pr-user-login’] ) )
{
$user_login = sanitize_user( $_GET[‘pr-user-login’] );
}$pr_page_content .= ‘
‘;
if ( get_option(‘users_can_register’) )
$pr_page_content .= ‘ Register | ‘;$pr_page_content .= ‘Lost your password?
‘;
global $post;
$post->comment_status = ‘closed’;
endif;
return apply_filters( ‘pr_page_content’, $pr_page_content );
}2016/11/16 11:00 오전 #37989php 는 서버쪽 언어고, 브라우져상에 구현되는 모습에 관여하지 않습니다.
“제 모니터가 32인치고, LG 사 제품인데, 마우스를 빨리 움직이게 하려면 어떻게 해야 하나요? 여기 모니터에 대한 스펙입니다.”
지금 이런식으로 질문하신거세요. ㅎㅎㅎ
https://kopress.kr/topic/질문하시기-전에-읽어주세요/
Attorney, front-end developer, digital media artist, WordPress enthusiast, & a father of 4 wonderful children.Lives in Colorado.
-
AuthorPosts
- 답변은 로그인 후 가능합니다.