• Hello!

    I have tried to use functions.php to remove the <p> tags in the code without being successful. Since I created a new theme by my self I did not have a functions.php file and therefor I had to create one. Here’s a picture with code from functions.php file and the result on the site. In the red boxes there are <p> tags that work as unwanted padding.

    View post on imgur.com

    Best regards, Erik

Viewing 1 replies (of 1 total)
  • I don’t really understand WHY p tags are showing there, and I don’t recommend doing this fix as it is quick and dirty (there are always better options than this) but if you know your way around CSS, you could target those two <p> tags specifically (as much specificity as you can, to avoid hiding other stuff that might match the rule) and hide them with display: none.

Viewing 1 replies (of 1 total)

The topic ‘Remove tags’ is closed to new replies.