RBA Cash Rate: 4.35% · 1AUD = 0.67 USD · Inflation: 4.1%  
Leading Digital Marketing Experts</strong | 1300 235 433 | Aggregation Enquires Welcome | Book Appointment
Example Interest Rates: Home Loan Variable: 5.69% (5.89%*) • Home Loan Fixed: 5.39% (6.59%*) • Fixed: 5.39% (6.59%*) • Variable: 5.69% (5.89%*) • Investment IO: 5.69% (6.48%*) • Investment PI: 5.39% (6.59%*)

Disable Text Widget Formatting With WP >= 4.8

Leading up to the release of WordPress 4.8 there was no lack of feedback on how the editor and associated widget formatting potentially screwed up content. The formatting errors effected everything - including blocks like AdSense code. To disable these formatting features, use the following filters.

Copy and paste the WordPress function into your theme's functions.php file or, if you sensibly have one installed, your custom functions plugin.

1
remove_filter('widget_text_content', 'wpautop');
2
remove_filter('widget_text_content', 'wptexturize');
3
remove_filter('widget_text_content', 'capital_P_dangit');
4
remove_filter('widget_text_content', 'convert_smilies');

Note that these filters will disable the widget feature globally. If using text in the widget, avoid switching over to the visual editor because the text will inherit the wrath of WP's formatting over again.

A HTML widget is proposed for version 4.8.1.

■ ■ ■

 
Download our complimentary 650-page guide on marketing for mortgage brokers. We'll show you exactly how we generate billions in volume for our clients.
Finance Guide, Cropped Top and Bottom
  Timezone: 1 · [ CHANGE ]

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Pinterest

Leave a comment