Thread Starter
htct
(@htct)
Also, does anyone know how to make the widgets smaller in the sidebar when displayed, they take up 1/3 of the page! Can they be made smaller, also change font, bold text, etc- thanks
Hi..
Please add any widget in sidebar then Archive blog from sidebar will removed.
Thanks.
Thread Starter
htct
(@htct)
Hi there
Thank you for getting back to me. I have just two widgets active, two AVH extended category widgets, I do not have an archive widget. When I go to the Housesitting tails page, I have the Housesitting tails widget which shows the two categories Australian tails and New South Wales.
But, when I then view a post, a archive widgets appears showing monthly post dates.
I just would like to see a post right across the page with no archive widget showing.
Also, is it possible to make the widget smaller, it takes up a lot of the page
Thanks
David
Hi..
Please add below css code into custom css editor.
.enigma_sidebar_widget {
display: none !important;
}
Save the changes.
Thanks.
Thread Starter
htct
(@htct)
Hi
Thanks for the help. I just tried the above and still have the issue. I copied your code to the CSS style sheet editor is that right? Or should it go in editor in one of the themes or styles?
Thanks
David
Hi,
Please go to Admin Dashboard >> Appearance >> Customize >> Theme Options >> Theme general Options.
Now copy below css code and paste into custom css editor.
.enigma_sidebar_widget {
display: none !important;
}
Save the changes.
Thanks.
Thread Starter
htct
(@htct)
Hi
Thank you for the help. Yes it worked, but not only has the archive widget gone but also my two AVH extended category widgets that have all my posts. Is there a way that I can just not display the archive widget on th sidebar , but the others I can?
Thanks
David
Hi,
Please make child theme.
Now copy below code and paste into your child theme’s functions.php file.
add_action( 'widgets_init', 'weblizar_widgets_init_child');
function weblizar_widgets_init_child() {
/*sidebar*/
register_sidebar( array(
'name' => __( 'Sidebar', 'enigma' ),
'id' => 'sidebar-primary',
'description' => __( 'The primary widget area', 'enigma' ),
'before_widget' => '<div class="enigma_sidebar_widget">',
'before_widget' => '<div id="%1$s" class="enigma_sidebar_widget %2$s">', //for diff.-2 classes of widget
'after_widget' => '</div>',
'before_title' => '<div class="enigma_sidebar_widget_title"><h2>',
'after_title' => '</h2></div>'
) );
}
After this each sidebar widget have unique id and now we can customize this as per your requirements.
Save the changes.
Let’s know further assistance.
Thanks.