We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Hi,

    Is there anyway to remove MODx for auto adding <p> </p> tags around snippet calls when they are made within the content document editor? I have tried removing them in the HTML viewer - but once deleted they are replaced! This adding of <p> tags around snippet calls (such as wayfinder and ditto) creates bad markup language and fails when validated against W3C standards... Is the only way to add the call into the template?? Surely not..

    Cheers
      • 26931
      • 2,314 Posts
      Hi dubbs,

      it’s actually not MODx wrapping content in paragraphs, but TinyMCE...see this thread: http://modxcms.com/forums/index.php/topic,28908.0.html

      hope that helps smiley
        • 8168
        • 1,118 Posts
        Sweet - thanks mate! That’s a rather annoying piece of code eh!