This question already has an answer here:
- Add class name to post thumbnail 3 answers
I'm just starting to create new theme and i'm new to code. I'm stuck in customizing the post thumbnail code, i tried add
<?php previous_post_link(get_the_post_thumbnail(get_previous_post(), array( 'class' => 'rounded-lg object-cover' )) . '<h4 class="text-center">%link</h4>', '%title',false ); ?>
but it doesn't seem to work. did my array mistakenly placed in the code?