HI I was wondering if there is a way to add a widget or a shortcode to be across the top of the blog index page https://concretesensor.wpengine.com/learn/ vs in a sidebar? i’m trying to move this search/filter to be across the top vs on the side. I have the css to move the form sideways but I need an area to support the shortcodeor widget?
I added a child them and i’ve added text headers across the top before in the functions.php, but i’m not sure how adding a shortcode might work in the functions page or if that isn’t the best way to do this. (see code below that i used for adding text)
/* 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 TEXT ON TOP OF BLOG PAGE */
function add_mytext() {
if(is_home()) { ?>
ADD YOUR TEXT HERE
<?php
}
}
add_action( ‘x_after_view_global__slider-below’, ‘add_mytext’, 10 );