PLEASE FOLLOW THIS HELPFUL GUIDE FOR SUCCESSFUL DEMO IMPORT.

- Our working time is from 9am until 5pm CET during weekdays.

- Usual response time for support requests is up to 24 hours.

- Tickets are ordered from oldest to latest, so please be patient, we will refer to your issue as soon as possible.

- When you submit a ticket, it would be really helpful if you could provide our agent with your website URL and wp-admin access in your private ticket. In that way, we will refer to your issue easier and faster.

Okay
  Print

Remove p tags from text widgets in WordPress 4.8

This is because of WordPress wpautop function which is wrapping lines with paragraph tags, and now function is being executed in text widget because it is present be default in text editor, which is inducted in WordPress version 4.8. Solution to this is to remove all spaces inside text widgets, and if that doesn't work 100% or you don't want to go trough all theme widgets and to do this manually you can simply add following line of code inside theme folder / functions.php

remove_filter('widget_text_content', 'wpautop');

If you want  permanent modification for future updates you should add that line inside child theme folder / functions.php file.