Wordpress dynamic sidebar without title
Widget always have a filter applied on title name 'widget_title', use that.
add_filter('widget_title','my_widget_title'); function my_widget_title($t){ return null;}
Thanks
-Shak
You can try this (in functions.php
within register_sidebar
)
'before_title' => '<span class="hidden">','after_title' => '</span>',
And Css
.hidden{display:none;}
You can also try this.
Those titles can be useful for CMS user, so in your register_sidebar
, you can put sth. like I did in code below (works in Wordpress 5.0.3). Now widgets title is in html comment, it seems ok for me
register_sidebar( array( 'name' => esc_html__( 'Contact page widgets', 'xxx' ), 'id' => 'sidebar-3', 'description' => esc_html__( 'Add widgets here to appear on contact page.', 'xxx' ), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<!-- ', 'after_title' => ' -->',) );