The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Disabling the wpautop filter in Attitude Theme (1 post)

  1. SQSBMedia
    Posted 3 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


No tags yet.