사이드바 관련해서 질문 올립니다.

사용하고 있는 테마에는 기본적으로 우측에 사이드바 1개와

푸터영역에 사이드바가 4등분 되어 사용되어질 수 있게 되어있습니다.

 

사이드바를 하나 추가하여

로그인 위젯(사이드바에 추가해서 할 수 있는 로그인 플러그인) 을 달아

위치 조정을 하고 싶은데...

 

대부분의 사이드바 플러그인은 페이지나 포스트 업데이트시에만 가능하도록 되어있더라구요...

이 문제..어떻게 해결해야할지.. 질문 올립니다.

워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
워드프레스 에러 기술지원 서비스 전문가에게 맡기세요
  • 검색해보니 테마 자체 function.php 에 함수 추가하는 부분이 있는데..

     

    제 테마의 function.php 에는 이런식으로 되어있습니다...

    그러다보니 어디다가 함수를 추가해야 하는건지.. 참...

    사이드바 플러그인을 이용할 수 있다면... 그 사이드바 플러그인이 뭔지..

    function.php에 코드를 삽입하고 싶으면.. 어디에 삽입을해야하는지..

    알려주시면 감사하겠습니다...ㅠ

    <?php


    /**
     * Adapt functions and definitions.
     *
     * Sets up the theme and provides some helper functions
     *
     * When using a child theme (see http://codex.wordpress.org/Theme_Development
     * and http://codex.wordpress.org/Child_Themes), you can override certain
     * functions (those wrapped in a function_exists() call) by defining them first
     * in your child theme's functions.php file. The child theme's functions.php
     * file is included before the parent theme's file, so the child theme
     * functions would be used.
     *
     *
     * For more information on hooks, actions, and filters,
     * see http://codex.wordpress.org/Plugin_API
     *
     * @package WordPress
     * @subpackage Adapt
     * @since Adapt 2.0
     */

     

    /*--------------------------------------*/
    /* Define Constants
    /*--------------------------------------*/
    define( 'WPEX_JS_DIR', get_template_directory_uri().'/js' );
    define( 'WPEX_CSS_DIR', get_template_directory_uri().'/css' );

     

    /*--------------------------------------*/
    /* Globals
    /*--------------------------------------*/
    if ( ! isset( $content_width ) ) $content_width = 980;
    require_once( get_template_directory() .'/functions/theme-setup.php');

     

    /*--------------------------------------*/
    /* Admin Panel
    /*--------------------------------------*/
    require_once ( get_template_directory() .'/admin/index.php' );
    require_once( get_template_directory() .'/functions/return-smof-data.php' );

     

    /*--------------------------------------*/
    /* Include functions
    /*--------------------------------------*/
    add_filter('widget_text', 'do_shortcode');
    require_once( get_template_directory() .'/functions/widgets/widget-areas.php' );
    require_once ( get_template_directory() .'/functions/helpers.php' );

    if ( wpex_get_data( 'portfolio_post_type' , '1' ) == '1' ) {
        require_once( get_template_directory() .'/functions/post-types-taxonomies/register-portfolio.php' );
        require_once( get_template_directory() .'/functions/helpers.php' );
    }
    if ( wpex_get_data( 'highlights_post_type' , '1' ) == '1' ) {
        require_once( get_template_directory() .'/functions/post-types-taxonomies/register-highlights.php' );
    }
    if ( wpex_get_data( 'slides_post_type' , '1' ) == '1' ) {
        require_once( get_template_directory() .'/functions/post-types-taxonomies/register-slides.php' );
    }

    require_once( get_template_directory() .'/functions/post-types-taxonomies/taxonomies-labels.php' );
    require_once( get_template_directory() .'/functions/post-types-taxonomies/post-type-labels.php' );

    if( is_admin() ) {    
        require_once ( get_template_directory() .'/functions/meta/usage.php' );    
    } else {
        require_once( get_template_directory() .'/functions/scripts.php' );
        require_once( get_template_directory() .'/functions/excerpts.php' );
        require_once( get_template_directory() .'/functions/posts-per-page.php' );
        require_once( get_template_directory() .'/functions/external-plugins-support.php' );
        require_once( get_template_directory() .'/functions/comments-callback.php');
        require_once( get_template_directory() .'/functions/image-default-sizes.php');
        require_once( get_template_directory() .'/functions/pagination.php');
        require_once( get_template_directory() .'/functions/aqua-resizer.php');
        
        if ( wpex_get_data ( 'builtin_retina', '0' ) == '1' ) {
            require_once( get_template_directory() .'/functions/aqua-resizer-ratio-check.php');
        }
        
        
    }

     

  • 검색하시면 여러 로그인 위젯을 찾으실수 있습니다.

    http://wordpress.org/plugins/nice-login-register-widget/screenshots/

    http://wordpress.org/plugins/tabbed-login/screenshots/

    여러 위젯이 있으니 설치해보세요.

    function.php 파일을 수정 하시는것 보다 훨씬 쉬울꺼에요.

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기