• Resolved zazzou

    (@zazzou)


    Hello
    I would like to display the name of the league and the date on two lines.
    With this :
    <?php echo esc_attr(implode(", ", $leagues_names) . ' ' . $date_show); ?>
    The league names and date are displayed on the same line.

    How can I add <br /> beetween the league name and the date ?

    Thanks a lot for help

Viewing 5 replies - 1 through 5 (of 5 total)
  • @zazzou

    <?php echo esc_attr(implode(", ", $leagues_names) . '<br />' . $date_show); ?>

    Thread Starter zazzou

    (@zazzou)

    Yah I tried this but it does not work.
    “<BR>” is displayed on the front…

    @zazzou

    Lol, oh ya, bc of the escaping :
    esc_attr

    What if you print the entity, like this :
    ;lt;br>

    Thread Starter zazzou

    (@zazzou)

    Like this ?

    <?php echo esc_attr(implode(", ", $leagues_names) . ';lt;br>' . $date_show); ?>
    

    It display on front again

    Finally, I do this :

    <div class="stm-next-match-info heading-font">
     <?php echo esc_attr(implode(", ", $leagues_names) ); ?></div>
    <div class="stm-next-match-info heading-font">
    <?php echo esc_attr( $date_show); ?>
    </div>

    Thanks.

    • This reply was modified 4 years, 9 months ago by zazzou.
    • This reply was modified 4 years, 9 months ago by zazzou.
    Plugin Contributor Savvas

    (@savvasha)

    I am glad you sorted it out @zazzou .

    Thanks once more @corrinarusso for your assistance ??

    Thanks,
    Savvas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Presentation league names’ is closed to new replies.