Skip to main content
All CollectionsModyo Essentials
Import libraries from Snippets
Import libraries from Snippets
Carlos Solis avatar
Written by Carlos Solis
Updated over 2 years ago

With Templates you can import the code that you need. For this example we will import the latest Bootstrap library but you can use these steps to import any other library.

To import the latest Bootstrap, follow these steps:

  1. In Modyo Platform, from the side menu, expand Channels, and click Sites.

  2. Haz click en tu Sitio y en el menú lateral haz click en Plantillas.

  3. In the right side menu, click the Snippets tab.

  4. Create a new Custom Snippet with name “bootstrap_js”.

  • It’s important to add the “_js” extension to indicate to the Platform this is a Javascript file. For CSS, the file must end with “_css”.

  1. In the work area, paste the Javascript code. Click Save.

  2. Create a new Custom Snippet with name “bootstrap_css” and paste the CSS code of the library in the work area. Click Save.

  3. In the right side menu, click the Views tab.

  4. Click the “base” Layout or the custom Layout you want to use.

  5. Import the snippets by pasting the following code:

{% snippet "bootstrap_js" %}

{% snippet "bootstrap_css" %}

Did this answer your question?