> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: About Custom Code ## Article: About Custom Code ## Article Link: https://dev.wix.com/docs/develop-websites-sdk/code-your-site/build-a-custom-frontend/custom-code/about-custom-code.md ## Article Content: # About Custom Code Custom code lets you add HTML, JavaScript, and CSS snippets to the head or body of a site's pages. You can use it to integrate external services, customize site behavior, and add functionality that isn't available through the editor's built-in tools. You add custom code from the site dashboard under **Settings > Custom Code**. Custom code can be used in all Wix editors. For Wix Harmony sites, which don't support site code, custom code is one of the primary ways to extend a site's functionality beyond what the editor provides. > **Note:** To add custom code, the site must be [published](https://support.wix.com/en/article/wix-editor-publishing-your-site) and have a [connected domain](https://support.wix.com/en/article/connecting-a-domain-to-your-site-195136). ## How it works When you add a custom code snippet, you configure the following: - **Placement**: Where the snippet is injected in the page's HTML. Options include the `
` tag, the start of the `` tag, or the end of the `` tag. - **Scope**: Whether the snippet loads on all pages or only on specific pages. - **Loading behavior**: Whether the snippet loads once per visit or on every page the visitor opens. Custom code snippets don't appear as elements in the editor. They run behind the scenes when the page loads, but their effects, such as applied styles, injected UI elements, or data fetched from external services, are visible to site visitors on the published site. ## Use cases You can use custom code to integrate 3rd-party services, style elements beyond what the editor offers, add interactive JavaScript, and improve SEO with structured data. ### Integrate 3rd-party services Many external services require a code snippet to be added to a website. Custom code gives you a place to paste these snippets so they load alongside the site. Common examples include: - **Site verification**: Search engines like Google and Bing require a `` tag in the site's `` to verify site ownership. - **Live chat widgets**: Customer support platforms provide a script that displays a chat widget on the site. - **Cookie consent banners**: Privacy compliance tools provide a snippet that displays a consent banner to meet GDPR or CCPA requirements. ### Add custom CSS You can inject a `