P-Torres
2 years ago

Bootstrap or Bulma grid system WordPress style shortcodes.

Posted 2 years ago by P-Torres

Hi,

I'm looking for some advice.

I'm preparing a new project that will involve a CMS that will allow users to manipulate the content.

I need to allow users to submit WordPress style shortcodes that will be translated to bootstrap or Bulma grid system.

For example:

A form with a text input where users will do something like this:

[container]
  [row]
    [col-md-6]
      <h3>Title</h3>
      <p>Text</p>
    [/col-md-6]
    [col-md-6]
      <h4>Title</h4>
      <p>Text</p>
    [/col-md-6]
  [/row]
[/container]

How can I achieve this?

Can anyone help me to find information on how to translate:

[container]
[/container]

To normal HTML:

<div class="container">
</div>

Thanks!

Please sign in or create an account to participate in this conversation.