Wordpress surrounding content with <p> tags

You want to create a new Wordpress template with your own layout. With the basic setting Wordpress automatically surround the content you add with <p> tags, which can lead to unintended issues with the layout of your Wordpress site. Unfortunately there is no option in the menu to do this, so you have to find another solution.
1 answer

Add a remove_filter function

To stop Wordpress from putting tags around your content, you can use the following Wordpress function call:
remove_filter('the_content', 'wpautop');
To apply this function to your template, just put the function statement in a file called "functions.php" in your main directory of your wordpress template. If the functions.php does't exist, just create it.