Code injection

You can use custom code to further customize your website. But on one condition: Make sure you know what you’re doing. 😉

Some of your changes can interfere with the code that Ycode creates.

Ycode supports adding client-side code but does not support server-side code like PHP, Ruby, Ruby on Rails and SQL.

Note: Custom coding is an advanced modification that’s not included in the Ycode support. If we’re troubleshooting issues with your web project, we might ask you to remove it so we can determine if the custom code is the root of the issue.

Code injection vs. HTML embed

Code injection can be used to make your website even fancier. HTML and scripts are used to add live chat, domain verification for custom email services or website analytics. Code injection is not used to add content or styles.

HTML embed pulls content from external sites and services that use the oEmbed standard. This method is used to show third-party content, like an embedded Tweet or a video from a platform that Ycode doesn’t support (like Vimeo).

Adding custom code

To add custom code to code injection:

  1. In the left-side panel, click on Settings and then select Custom code.

  2. Add valid HTML or scripts into the header field.

  3. After adding your code, click Save changes.

  4. Custom code is now injected into the <head> tag on every website page

Custom code doesn’t appear

Does your custom code not appear on your website? This can have a few reasons:

  • You’re logged in. For security reasons, sometimes code doesn’t appear when you’re logged in—even when visitors can see it. This is because you’re viewing embedded JavaScript over a secure HTTPS connection. Open your page in incognito mode to see it the code does display.

  • It’s on an index page. If you’ve added your code to an index page, rendering issues can occur. To double-check this, remove your page from the index in the Pages tab, and open your website in an incognito browser tab.

None of the above? Try going to the source of the code and ask for help there. Unfortunately, Ycode’s support team cannot help you troubleshoot issues with third-party or external code.

Get your no-code fix

Join our monthly email with no-code insights and Ycode updates.
.
2019 - 2021 © Ycode. All rights reserved.