Support » Plugin: OptionTree » Select-siderbar

  • Resolved nguyenan365

    (@nguyenan365)


    Hi there ! i has register 2 siderbar and call they in

    array(
                'id'          => 'st_sidebar_shop',
                'label'       => __('Sidebar select',$st_textdomain),
                'desc'        => '',
                'std'         => '',
                'type'        => 'sidebar-select',
                'section'     => 'shop_setting',
                'class'       => '',
                'condition'   => 'st_sidebar_shop_position:not(no)',
            ),

    they appear on my admin page . but they have the same name “sidebar”???
    here is siderbar function register :

    $arg1= array(
                'name'          => __( 'Blog sidebar', $st_textdomain ),
                'id'            => 'sidebar-1',
                'description'   => '',
                'before_widget' => '<aside id="%1$s" class="widget %2$s">',
                'after_widget'  => '</aside>',
                'before_title'  => '<h1 class="widget-title">',
                'after_title'   => '</h1>',
            );
            $arg2=array(
                'name'          => __( 'Shop sidebar', $st_textdomain ),
                'id'            => 'sidebar-2',
                'description'   => '',
                'before_widget' => '<aside id="%1$s" class="widget %2$s">',
                'after_widget'  => '</aside>',
                'before_title'  => '<h1 class="widget-title">',
                'after_title'   => '</h1>',
            );
            register_sidebars($arg1);
            register_sidebars($arg2);

    sorry my english is very poor !

    https://wordpress.org/plugins/option-tree/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Select-siderbar’ is closed to new replies.