I noticed that I had paragraph (<p>) tags around some of my contact form 7 elements. I tried adding this to the functions
define ( ‘WPCF7_AUTOP’, false );
but that still didn’t work.
It wasn’t another plugin like in an earlier problem with p tags, it was actually contact form 7 this time. I had label html tags and apparently this caused p tags to be added around these label tags. I replaced the label tags with div and the paragraph tags went away.