Span classes being stripped.
-
I added the following to allow for br and span tags with classes, but the classes keep getting stripped.
add_filter( 'subheading_tags', function( $tags ) { $tags['span'] = array('class'); $tags['br'] = array(); return $tags; } );
Did I do it wrong?
Also, should class names be in quotes? I tried with single, with double and none. All got stripped.
Just trying to do something like this:
<span class=”home1st”>Lorem ipsum dolor sit amet,</span><span class=”home2nd”>consectetuer adipiscing elit.</span>
But I get this after saving:
<span>Lorem ipsum dolor sit amet,</span><span>consectetuer adipiscing elit.</span>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Span classes being stripped.’ is closed to new replies.