Text format

When there is only one line, the text is center (expected behavior).
When the text is too long for one line and the end is sent on the second line, all the text looses his centered format and is left aligned.

2022-09-12_111657

The code written in the Code Block:

<?php
$field = '';
$fields = '';
$fields = get_field('clubrecevant');
if( $fields ) {
	foreach( $fields as $field ) {
		$field_id = $field->ID;
		echo '<a href="' . get_permalink( $field_id ) .'">' . get_the_title( $field_id ) . '</a>';
	}
}
?>

Environment info

  • WordPress version: 6.0.2
  • Gutenberg Plugin version: not installed
  • Cwicly Plugin version: 1.2.1.6
  • Cwicly Theme version: 1.0.3

Hello @weedor,

I don’t think this is a bug.
Rather, I expect you have centered your items in a flex div, but as soon as the text is too long, it simply fills in the space.

Make sure you set the text align property for the div or field itself to center

I don’t know exactly how, but everything was itself corrected.
I think it is when I reactivated the Cwicly blocks in settings panel.
In any case, all is allright now!
Thank you @Louis
See you tonight for live.

1 Like

Thanks for letting me know @weedor.

Looking forward, see you tonight :smiley: