• Resolved allankayak

    (@allankayak)


    HEllo.

    I use the content block plugin to insert prices from products in various places on my site. But when the content block is inserted it surrounds it in a <p> tag, which often messes up the layout.. is there a way to insert the content as raw test?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Johan van der Wijk

    (@vanderwijk)

    Yes, when you add suppress_content_filters=no to the shortcode, the the_content filter is bypassed so the <p> tags won’t be added.

    Thread Starter allankayak

    (@allankayak)

    So my custom content code should look like this:
    [content_block id=10921 suppress_content_filters=no]

    There seems to be no change in the output on my test page. It is still surrounded with P Tags

    Plugin Author Johan van der Wijk

    (@vanderwijk)

    Hi Allan,

    By default all post content runs through the WordPress content filter which adds the <p> tags.

    So if you do not want to output the paragraph tags you will have to disable (suppress) the content filter like this:

    [content_block id=10921 suppress_content_filters=yes]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘insert content without the tag’ is closed to new replies.