Hi,
Is it possible to show widget on the top of lastet posts in the content area, for homepage?
Thanks
Hi,
Is it possible to show widget on the top of lastet posts in the content area, for homepage?
Thanks
Hi @funkweb,
The easiest way would be to make use of the Header Widget Areas option available in X > Theme Options > Widget Area.

You can then place the widgets in the widget areas in Appearance > Widgets that has Header titles.
The result will then be like what you can find in the Integrity 1 demo,
http://demo.theme.co/integrity-1/
Click on the + icon on the top right side of the page.
Hope this helps.
Hi Jade,
This is not what i am looking for. Let me rephrase it for you.
Home page is set to latest blog posts. and and widget area is needed on the top of the posts in the content area. not in the header.
Thanks
Hi @funkweb,
Thanks for the clarification.
There is no out of the box option to achieve this though it is possible by some customization. This code should help you get started:
#1. First, create a sidebar in Appearance > Sidebar.



#2. Once you created the sidebar, you should be able to see the sidebar widget you created in Appearance > Widgets.

Add the widgets in that widget area.
#3. Login through FTP then add this code in the child theme’s functions.php:
add_action('x_before_view_global__index', 'add_blog_widgets');
function add_blog_widgets() {
if ( is_active_sidebar( 'ups-sidebar-test' ) && is_home() ) :
dynamic_sidebar( 'ups-sidebar-test' );
endif;
}
Please replace ups-sidebar-blog-widget in the code above with the ID of the sidebar you have created.
Kindly note that since this is a custom code that changes the default behavior/display of the theme, you will be responsible to maintain or update the code in case you require further changes or if the code stops working in future updates. If you are uncertain how to proceed, it would be best to get in touch with a developer.
Hope this helps.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.