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

    (@vanderwijk)

    Hi dimagsv,

    Yes, you should be able to display the content block inline using css.

    Thread Starter dimagsv

    (@dimagsv)

    This can’t be made using css. div is not allowed in p element by html specification.
    This
    Contact info: [content_block id=1234]
    will be in html:
    <p>Contact info: <div><p>bla bla bla</p></div></p>
    , but browser will interpret this as
    <p>Contact info: </p><div><p>bla bla bla</p></div><p></p>
    Browser will auto close first p tag.

    Plugin Author Johan van der Wijk

    (@vanderwijk)

    Unfortunately this cannot be done with the Custom Post Widget plugin. In line 184 of the file post-widget.php you can see that a div is always added around the embedded content block. You could of course remove lines 184 and 186 of the plugin, but when updating the plugin this will be undone.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need feature to remove div in shortcode’ is closed to new replies.