WordPress.org

Forums

Attitude
Disabling the wpautop filter in Attitude Theme (1 post)

  1. SQSBMedia
    Member
    Posted 2 years ago #

    I have done some research about what code to apply to the functions file in order to stop WordPress from automatically adding <p> tags but where should I place it within this theme's files since the functions file only refers to other .php files? Or is this code (see below) not the correct code to resolve this issue for this particular theme?

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

    Thanks in advance for your help!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.