• Resolved tsalzer

    (@tsalzer)


    My theme is adding a BR tag in the output of the mailpoet_archive shortcode, making the rendered output not very elegant.

    <li><span class="mailpoet_archive_date">October 1, 2020</span><br />

    How can I either strip that BR tag out of the output or prevent it from being added (presumably by wpautop)? Has anyone crafted some custom code for the functions.php file that simply combine the send date and the subject into a single line, thus avoiding the addition of the BR tag?

Viewing 1 replies (of 1 total)
  • Thread Starter tsalzer

    (@tsalzer)

    Mark it resolved – I used some CSS to hide the BR tags:

    .mailpoet_archive br { display:none!important;  
    }
Viewing 1 replies (of 1 total)

The topic ‘How to remove BR tag from shortcode output’ is closed to new replies.