admin管理员组

文章数量:1391756

how can I add a class to li elements when creating block templates? I get to here:

array( 'core/list', array( 
            'className' =>  'list-unstyled h5',
            'li'        =>  array(
                               'className'  =>  'list-inline-style'
                            )
) ),

which adds the classes to the <ul> but how do I add classes to the <li> element? Or something like that?

本文标签: theme developmentgutenberg add classes to list items