Hi,
If you scroll down to FTB Episodes Advanced Viewing on this page:
https://followtheboat.com/ftbmates/
you can see I’ve called the thumbnail for the latest topic. I’ve set the li to display:block so that it spans the remaining space.
How do I center align it within that li block?
I’d also like to add the title underneath. Code I have tried so far is this:
<li display="block"><a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon'));?><br>
<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?> </li>
Whilst this manages to get the title underneath, but all still aligned left:
<li class="fa-thumb"><div text-align="center"><a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon'));?><br>
<span class="fa-link"><?php bbp_topic_title(); ?></span></div></li>
Ultimately I’d like the thumbnail to be centered in that entire space, and the text underneath justified to the left but starting at the left of the box (so centred but left-justified).
If you scroll further down you can see under VIP Mates Only Video that there is a longer title. If I make the font any bigger to wraps to the side of the thumbnail.
Also, I appear to have inherited a strange little icon just before the title.
Thanks!
