Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1408726


    in a page, created with ALB, I have added a textblock with this content:

    <h1>This is a h1 Headline</h1>
    <h3 class="stripes"><span>This is a subline with stripes at the end</span></h3>

    After saving the textblock and saving the page, it looks correctly like this:


    But when I reopen this textblock, then the <span> </span> has been stripped out – and therefor the output in frontend is wrong:


    Used CSS:

    .entry-content-wrapper h1 {
      border-left: 6px solid #d3b9b1;
      color: #b5b5b5;
      font-size: 50px;
      font-weight: 400;
      padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    h3.stripes {
      background: url("../images/eigene/stripes.gif") repeat-x scroll center 10px !important;
      padding: 1px 0 0 0px;
      width: 100%;
      text-align: left;
      margin-left: -10px;
    h3.stripes span {
      background-color: #FFFFFF;
      color: #b5b5b5;
      font-size: 15px !important;
      letter-spacing: 2px !important;
      padding: 2px 10px;
      text-transform: uppercase;
      font-weight: normal;
      vertical-align: top;

    Why is the <span> tag always stripped out when I save the textblock after editing it?

    I use the newest ENFOLD, WP 6.2.2, classic editor and I have this on my sandbox site as well as my local site.

    The fact, that span tags have been stripped out, is an old issue, that others had, too:
    here –>
    and here –>


    Hey BeeCee,
    Thank you for your patience, the issue is because TinyMCE strips empty tags, and while there are different solutions such as: one, two, etc,
    I recommend simply adding a class to the span so it is not empty like this:
    In my tests the span is not removed even with multiple edits and you are not opening yourself up to possible future issues with using the functions.

    Best regards,


    Thank you very much, Mike, for that explanation – never heard of it, but good to know.
    I have used a span-class now and it works now fine!
    Thank you, you can close this thread now.


    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘ALB textblock strips out span-tag’ is closed to new replies.