1

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?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.