Home How to add class to <ul> of dynamic_sidebar in wordpress
Reply: 0

How to add class to <ul> of dynamic_sidebar in wordpress

user484
1#
user484 Published in May 27, 2018, 3:33 am

Wordpress automatically wraps up your menus inside a <ul> but I want to give it a class. If you do it like this

register_sidebar(array(
        'name' => 'Before Content Area',
        'id' => 'before-content-area',
        'before_widget' => '<ul class="menu">',
        'after_widget' => '</ul>',
    ));

you get an inside another and I dont want that.How you do it?

Thank you.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304153 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO