I had added this to my blog index page. I had had this working before but something got messed up and now, I used info from this post https://theme.co/apex/forum/t/any-way-to-move-a-be-at-the-top-of-the-blog-post-page-vs-as-a-side-bar/54387
i can’t get the section with the blog posts to go end to end vs have this side bar space. I under my code is creating it but i don’t know how to remove that piece but still have my search filter area at the top.
looks like this
but want to have look like this

// ADD SEARCH FILTER
///* ADD SIDEBAR TO BLOG PAGE */
function add_sidebar_blog($layout){
if(is_home()){
$layout = “content-sidebar”;
}
return $layout;
}
add_filter(‘x_option_x_layout_content’, ‘add_sidebar_blog’,999);
add_action( ‘x_after_view_global__slider-below’, ‘add_mytext’, 10 );
// // SEARCH FILTER ADDITION AND MOVE TO TOP
//
add_action( ‘add_meta_boxes’, ‘add_is_featured_post’ );
function add_mytext() {
if(is_home()) {
echo do_shortcode( ‘[searchandfilter id=“258”]’ );
}
}
