New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Prevent Bard stripping out <div> tags?

Jon Hicks July 29, 2019 by Jon Hicks

I have setup a site in Statamic to use the Bard fieldtype for page content as this is ideal for the client. However, when I switch to code view and add div wrappers around parts of the content (for styling), these are then stripped out on save.

Is there anyway to prevent this? Or is there another fieldtype like Bard that will let me do this? It seems that Redactor does this too

Answered by James Blair!
>>>>>>> Answered <<<<<<<
7 Replies
4 Followers