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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.