diff --git a/header.php b/header.php index 3baa5c2..0c51876 100644 --- a/header.php +++ b/header.php @@ -112,12 +112,12 @@ class="site-header ID, 'header_slider', true ); if ( $slider && '' != $slider ) { - echo do_shortcode( '[yith-proteo-slider slider="' . get_post_meta( $post->ID, 'header_slider', true ) . '"]' ); + echo do_shortcode( '[yith-slider slider="' . get_post_meta( $post->ID, 'header_slider', true ) . '"]' ); } } } diff --git a/inc/metaboxes.php b/inc/metaboxes.php index 653faf1..c0161e1 100644 --- a/inc/metaboxes.php +++ b/inc/metaboxes.php @@ -54,7 +54,7 @@ function yith_proteo_header_slider_add_meta_box() { } -if ( defined( 'YITH_PROTEO_UTILS' ) ) { +if ( defined( 'YITH_SLIDER_FOR_PAGE_BUILDERS' ) ) { add_action( 'add_meta_boxes', 'yith_proteo_header_slider_add_meta_box' ); } @@ -227,7 +227,7 @@ function yith_proteo_header_slider_html( $post ) { - 1, - 'post_type' => 'yith_proteo_slider', + 'post_type' => 'yith_slider', 'post_status' => 'publish', 'fields' => 'ids', ); diff --git a/sidebar.php b/sidebar.php index fb8b346..c939879 100644 --- a/sidebar.php +++ b/sidebar.php @@ -6,7 +6,6 @@ * * @package yith-proteo */ - if ( ! is_active_sidebar( 'sidebar-1' ) || ! yith_proteo_get_sidebar_position( 'sidebar-show' ) ) { return; }