Does SnapPages support custom code?

SnapPages has built-in features for adding in custom code to your pages such as the Code Block and Code Injection. However adding code to your site is an advanced modification that falls outside of the scope of SnapPages support and will be best handled by the developer of the code.

While we can't help you troubleshoot or provide specific directions for custom code modifications, below are some resources that can help point you in the right direction.

What type of code can I add to my site?

Client-side code such as HTML, CSS, and JavaScript that is executed by a browser (Chrome, Firefox, Safari, etc.) are all examples of code that can be used on your site.

Server-side code is code that is handled by a server, not by a browser and this is code that is not supported. This includes: PHP, Ruby, Ruby on Rails, SQL

What are the differences between HTML, CSS, and JavaScript?

  • HTML - This is the code used to add content to a web page. When you add a Section or a Block, you're adding HTML to your site.
  • CSS - This is the code used to add style and design to a website. Our themes have built-in CSS, and all themes, blocks, and sections have style options that allow you to customize your CSS 
  • JavaScript - This is the code used to add action to a web page. JavaScript works behind the scenes to make things like section slides and animation happen.

What changes can I make with code?

If you plan to add custom code, we highly recommend that you have web development knowledge or are working with a 3rd party. We urge you to proceed with caution, and for best results, consult with a developer for help with any of these changes and modifications.

HTML and JavaScript

There isn’t a limit to what you can do with HTML and JavaScript, but you may run into some difficulties with styling as it may conflict with our templated CSS.

CSS

CSS should be used only for changing fonts, colors, and backgrounds. If you decide to apply custom CSS to your site, it should be used sparingly.

You should not use CSS to adjust the layout of your site. By changing characteristics like Padding, Margins, and Positioning you may interfere with the multiple aspects of your theme as well as future improvements to SnapPages. As this is the case these types of changes should all be done natively on our platform.

What are some good external resources for coding?

Here are a few websites we recommend for tutorials, troubleshooting, and reference guides to working with custom code:

Did this answer your question?