0

The new Text Widget in WordPress 4.8 is stripping out code. For example, if the following code is placed in the widget via the Text editor:

<ul>
<li><a href="#" class="location"></a>List 1</li>
<li><a href="#" class="location"></a>List 2</li>
</ul>

Just noticed the issue this morning, after upgrading to WP 4.8 on a few sites.

andreas
  • 16,357
  • 12
  • 72
  • 76

1 Answers1

0

Yes, this seems to happen with Wordpress 4.8. Here is an article regarding this issue.

As long as you don't open a text widget, you should be safe from this behavior.

One solution is to use a plugin available named Classic Text Widget that fixes this issue. Note that this plugin uses PHP namespaces which are only supported in PHP Version 5.3.0 and higher.

user8230352
  • 1,775
  • 1
  • 9
  • 13
  • I unfortunately ran into this issue AFTER updating, so I have no way to dump my widget content into another type of widget before updating. I x=will test Classic Text Widget. Thanks. – Fred Delaunay Jul 18 '17 at 20:21