Jump to content

Archived

This topic is now archived and is closed to further replies.

rekent

Adding code to functions.php

Recommended Posts

rekent

I want to include the following code in the functions.php file, but I do not see a hook for that in the Pagelines Hook Editor.  Can anyone please point me in the right direction for finding where this code should go?

remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );

Share this post


Link to post
Share on other sites
rekent

I shouldn't, but Wordpress is automatically adding <p> tags around my content, which is creating layout problems.

 

I have a child theme, so I just create a functions.php sheet in the same child theme folder as my style.css and style.less?

 

Share this post


Link to post
Share on other sites

×