Skip to main content
All CollectionsModyo Essentials
How to customize the HTML code of my site at a global scale?
How to customize the HTML code of my site at a global scale?
Carlos Solis avatar
Written by Carlos Solis
Updated over a week ago

In Modyo Platform, you have total access to make any kind of change in your sites. This is achieved with Widgets to customize a part of your site, or with Templates to modify at a global scale.

When you create a Site, you create the required files to display our base Template. This can be modified to your needs from the Templates module. The modifications performed here, will be reflected in every page that calls this Template.

Make global changes

To make a global change, follow these steps:

  1. In Modyo Platform, in the main menu, expand Channels, and click Sites.

  1. Click on your Site.

  2. In the side menu, click Templates.

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

  4. In the Custom section, click +.

In the path you can decide what language to use by writing the extension in the following manner. For CSS, write the name followed by “_css”; for Javascript the file has to end with “_js”. With the custom snippet ready, now you have to add it to the View.

  1. In the side menu on the right-side, in your custom Snippet, click the button Copy Liquid Markup.

  2. Click the Views tab and in the General section click the base Layout.

  3. Pasthe the Liquid code to call your Snippet. It should look something like {% snippet "mySnippet" %}.

We recommend using Snippets when extending the features of your Templates so you keep your code modular and easy to read.

Did this answer your question?