To customize features in Bigcommerce , most of the times we may need to add or customize javascript in the theme files.
Do follow the steps to add Javascript.
- Log in to BigCommerce admin panel.
- From the sidebar, navigate to “Storefront” and select “Script Manager.”
- In the Script Manager, click on the “Create Script” button.
- Provide a name for script, such as “Custom Script.”
- Under “Location on page,” choose where want the script to be inserted. Options include “Head,” “Footer,” or “Anywhere.” Select the appropriate location based on your requirements.
- In the “Script Type” section, select “Script.”
- In the “Script URL” field, enter the URL of the script want to add. If the script is hosted externally, make sure it is accessible from the internet.
- If you have the script code instead of a URL, select “Inline” from the “Script Type” dropdown and enter the code directly in the “Script Content” field.
- Also specify the pages where the script should be added under the “Pages” section. Select “All pages” if want the script to be added to every page.
- Once, entered the necessary information, click the “Save” button.