Add multiple classes


I am adding classes with beans_add_attribute( 'beans_post_more_link', 'class', 'uk-button' );

How to I add multiple classes to a div?


Hey Bas, you can add it in the same string. See the example below:

beans_add_attribute( 'beans_post_more_link', 'class', 'uk-button another-class more-class' );

Thanks I tried with 'uk-button' 'another-class' ......this will work better...

No worries, I am glad I could help 🙂

Write a reply

Login or register to write a reply, it's free!