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:
In Modyo Platform, in the main menu, expand Channels, and click Sites.
Click on your Site.
In the side menu, click Templates.
In the side menu on the right-side, click the Snippets tab.
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.
In the side menu on the right-side, in your custom Snippet, click the button Copy Liquid Markup.
Click the Views tab and in the General section click the base Layout.
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.