{"id":34871,"date":"2023-08-05T05:41:12","date_gmt":"2023-08-05T02:41:12","guid":{"rendered":"https:\/\/elementor.com\/help\/?p=34871"},"modified":"2026-01-20T11:58:50","modified_gmt":"2026-01-20T09:58:50","slug":"custom-code-elementor-ai","status":"publish","type":"post","link":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/","title":{"rendered":"Add custom code using Elementor AI"},"content":{"rendered":"\n<p>The Custom Code feature allows you to add HTML, JavaScript and CSS code snippets to your site. For example, Google Analytics code or Facebook Pixel code. You can add any kind of JavaScript code to tweak the DOM, add events and dynamic features and much more. You can use CSS snippets to add custom styling to any element on the site.<\/p>\n\n\n\n<p>[callout type=&#8221;note&#8221;]Custom code does not support PHP snippets. You cannot use this feature to add custom hooks or actions. You can use a different approach for PHP, either through functions.php or a third-party plugin.[\/callout]<\/p>\n\n\n\n<p><strong>To add custom code, follow these steps:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>From WP Admin, go to <strong>Elementor&gt;Editor<\/strong>.<br><img fetchpriority=\"high\" decoding=\"async\" width=\"180\" height=\"332\" class=\"wp-image-161106\" style=\"width: 180px;\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png\" alt=\"\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png 166w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor-163x300.png 163w\" sizes=\"(max-width: 180px) 100vw, 180px\" \/><\/li>\n\n\n\n<li>In the left panel, open Custom Elements.<br><img decoding=\"async\" width=\"680\" height=\"432\" class=\"wp-image-161256\" style=\"width: 680px;\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Open-custom-elements.png\" alt=\"\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Open-custom-elements.png 1178w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Open-custom-elements-300x191.png 300w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Open-custom-elements-1024x651.png 1024w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Open-custom-elements-768x488.png 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/> <\/li>\n\n\n\n<li>Click <strong>Code<\/strong>.<br><img decoding=\"async\" width=\"680\" height=\"426\" class=\"wp-image-161263\" style=\"width: 680px;\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-Code.png\" alt=\"\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-Code.png 1176w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-Code-300x188.png 300w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-Code-1024x642.png 1024w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-Code-768x481.png 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/li>\n\n\n\n<li>Click <strong>New code<\/strong>.<br>[callout type=&#8221;note&#8221;]You can select an existing code to edit.[\/callout]<br><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"340\" class=\"wp-image-161270\" style=\"width: 680px;\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-new-code.png\" alt=\"\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-new-code.png 1187w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-new-code-300x150.png 300w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-new-code-1024x512.png 1024w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Click-new-code-768x384.png 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><br>The <strong>New Code<\/strong> page appears.<br><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"450\" class=\"wp-image-161277\" style=\"width: 680px;\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/The-new-code-page.png\" alt=\"\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/The-new-code-page.png 1068w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/The-new-code-page-300x199.png 300w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/The-new-code-page-1024x678.png 1024w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/The-new-code-page-768x508.png 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/li>\n\n\n\n<li>Enter the following:\n<ul class=\"wp-block-list\">\n<li><strong>Add title<\/strong> \u2013 It helps you identify this code snippet later.<\/li>\n\n\n\n<li><strong>Location <\/strong>\u2013Determines the section of the webpage where the code will be located. Choose from the following options:\n<ul class=\"wp-block-list\">\n<li>&lt;head&gt; \u2013&nbsp; at the page level<\/li>\n\n\n\n<li>&lt;body&gt; \u2013 Start \u2013&nbsp; at beginning of the page\u2019s body<\/li>\n\n\n\n<li>&lt;body&gt; \u2013 End \u2013&nbsp; at end of the page\u2019s body<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Priority <\/strong>\u2013 Choose from (1 \u2013 10). If multiple scripts are assigned to the same location, the priority levels determine the order in which they should run.<br>[callout type=&#8221;note&#8221;]Lower numbers indicate higher priority. So a script with a priority of 1 will have a higher priority than a script with a priority of 5.[\/callout]<\/li>\n\n\n\n<li>Enter or paste the code snippet in the code block editor. The built-in code linter checks your code and notifies you of error, if any.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>From the <strong>Publish<\/strong> block, for <strong>Conditions <\/strong>click <strong>Edit<\/strong>. The <strong>PUBLISH SETTINGS<\/strong> window shows.<br><img loading=\"lazy\" decoding=\"async\" width=\"362\" height=\"258\" class=\"wp-image-48686\" style=\"width: 400px\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-1.png\" alt=\"Add custom code 1\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-1.png 362w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-1-300x214.png 300w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/><\/li>\n\n\n\n<li>Set the desired conditions. For details, see <a href=\"https:\/\/elementor.com\/help\/conditions\/\">How To Set Display Conditions For Global Templates<\/a>.<br><img loading=\"lazy\" decoding=\"async\" width=\"1186\" height=\"459\" class=\"wp-image-48687\" style=\"width: 680px\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-3.png\" alt=\"Add custom code 3\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-3.png 1186w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-3-300x116.png 300w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-3-1024x396.png 1024w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-3-768x297.png 768w\" sizes=\"(max-width: 1186px) 100vw, 1186px\" \/><\/li>\n\n\n\n<li>Click <strong>Publish<\/strong>. You can also save the custom code as draft or set a later publish date &amp; time.<br><img loading=\"lazy\" decoding=\"async\" width=\"351\" height=\"394\" class=\"wp-image-48688\" style=\"width: 350px\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-6.png\" alt=\"Add custom code 6\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-6.png 351w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-6-267x300.png 267w\" sizes=\"(max-width: 351px) 100vw, 351px\" \/><\/li>\n<\/ol>\n\n\n\n<p>[callout type=&#8221;note&#8221;]In addition to scripts, you may also add CSS to your website by wrapping it between the HTML style tag. This allows you to only include the CSS based on the conditions you set. See example below:<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"461\" class=\"wp-image-48689\" style=\"width: 680px\" src=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-4.jpg\" alt=\"Add custom code 4\" srcset=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-4.jpg 1005w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-4-300x138.jpg 300w, https:\/\/elementor.com\/help\/wp-content\/uploads\/2024\/03\/Add-custom-code-4-768x352.jpg 768w\" sizes=\"(max-width: 1005px) 100vw, 1005px\" \/>[\/callout]<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code with Elementor AI<\/h2>\n\n\n\n<p>You can use Elementor to generate your custom code. See <a href=\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\">Add Custom Code Using Elementor AI<\/a> for more details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Custom Code feature allows you to add HTML, JavaScript and CSS code snippets to your site. For example, Google Analytics code or Facebook Pixel code. You can add any kind of JavaScript code to tweak the DOM, add events and dynamic features and much more. You can use CSS snippets to add custom styling [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_elementor_kustomer_id":["65a3d8bf0e9e58492c3bf07b"],"footnotes":""},"categories":[1480],"tags":[1389,1388,1359,1390,1398,1235,1334],"class_list":["post-34871","post","type-post","status-publish","format-standard","hentry","category-code","tag-advanced","tag-agency","tag-elementor-ai","tag-expert","tag-legacy-essential","tag-pro","tag-version-3-13"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add custom code using Elementor AI | Elementor<\/title>\n<meta name=\"description\" content=\"Learn everything about Add custom code using Elementor AI in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add custom code using Elementor AI | Elementor\" \/>\n<meta property=\"og:description\" content=\"Learn everything about Add custom code using Elementor AI in this article from Elementor&#039;s Knowledge Base. Get Elementor tips &amp; more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\" \/>\n<meta property=\"og:site_name\" content=\"Help\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-05T02:41:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-20T09:58:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png\" \/>\n\t<meta property=\"og:image:width\" content=\"166\" \/>\n\t<meta property=\"og:image:height\" content=\"306\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Cliff Churgin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cliff Churgin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\"},\"author\":{\"name\":\"Cliff Churgin\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/c45726ca48a077e09198d78da3bc94d3\"},\"headline\":\"Add custom code using Elementor AI\",\"datePublished\":\"2023-08-05T02:41:12+00:00\",\"dateModified\":\"2026-01-20T09:58:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\"},\"wordCount\":399,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/elementor.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png\",\"keywords\":[\"Advanced\",\"Agency\",\"Elementor AI\",\"Expert\",\"Legacy Essential\",\"Pro\",\"Version 3.13\"],\"articleSection\":[\"Code\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\",\"url\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\",\"name\":\"Add custom code using Elementor AI | Elementor\",\"isPartOf\":{\"@id\":\"https:\/\/elementor.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png\",\"datePublished\":\"2023-08-05T02:41:12+00:00\",\"dateModified\":\"2026-01-20T09:58:50+00:00\",\"description\":\"Learn everything about Add custom code using Elementor AI in this article from Elementor's Knowledge Base. Get Elementor tips & more.\",\"breadcrumb\":{\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage\",\"url\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png\",\"contentUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png\",\"width\":166,\"height\":306,\"caption\":\"In WP Admin, the Elementor Editor section\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Help Center\",\"item\":\"https:\/\/elementor.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elementor AI\",\"item\":\"https:\/\/elementor.com\/help\/elementor-ai\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Code\",\"item\":\"https:\/\/elementor.com\/help\/elementor-ai\/code\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Add custom code using Elementor AI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/elementor.com\/help\/#website\",\"url\":\"https:\/\/elementor.com\/help\/\",\"name\":\"Elementor\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/elementor.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/elementor.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/elementor.com\/help\/#organization\",\"name\":\"Elementor\",\"url\":\"https:\/\/elementor.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png\",\"contentUrl\":\"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png\",\"width\":225,\"height\":225,\"caption\":\"Elementor\"},\"image\":{\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/c45726ca48a077e09198d78da3bc94d3\",\"name\":\"Cliff Churgin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/elementor.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2957ab51166ce1ab4527af621d95bed3b7002ffaed172a69d8d0fb052d28c700?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2957ab51166ce1ab4527af621d95bed3b7002ffaed172a69d8d0fb052d28c700?s=96&d=mm&r=g\",\"caption\":\"Cliff Churgin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add custom code using Elementor AI | Elementor","description":"Learn everything about Add custom code using Elementor AI in this article from Elementor's Knowledge Base. Get Elementor tips & more.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/","og_locale":"en_US","og_type":"article","og_title":"Add custom code using Elementor AI | Elementor","og_description":"Learn everything about Add custom code using Elementor AI in this article from Elementor's Knowledge Base. Get Elementor tips & more.","og_url":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/","og_site_name":"Help","article_published_time":"2023-08-05T02:41:12+00:00","article_modified_time":"2026-01-20T09:58:50+00:00","og_image":[{"width":166,"height":306,"url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png","type":"image\/png"}],"author":"Cliff Churgin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Cliff Churgin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#article","isPartOf":{"@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/"},"author":{"name":"Cliff Churgin","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/c45726ca48a077e09198d78da3bc94d3"},"headline":"Add custom code using Elementor AI","datePublished":"2023-08-05T02:41:12+00:00","dateModified":"2026-01-20T09:58:50+00:00","mainEntityOfPage":{"@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/"},"wordCount":399,"commentCount":0,"publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"image":{"@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png","keywords":["Advanced","Agency","Elementor AI","Expert","Legacy Essential","Pro","Version 3.13"],"articleSection":["Code"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/","url":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/","name":"Add custom code using Elementor AI | Elementor","isPartOf":{"@id":"https:\/\/elementor.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage"},"image":{"@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage"},"thumbnailUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png","datePublished":"2023-08-05T02:41:12+00:00","dateModified":"2026-01-20T09:58:50+00:00","description":"Learn everything about Add custom code using Elementor AI in this article from Elementor's Knowledge Base. Get Elementor tips & more.","breadcrumb":{"@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elementor.com\/help\/custom-code-elementor-ai\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#primaryimage","url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png","contentUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2026\/01\/Select-Elementor-then-Editor.png","width":166,"height":306,"caption":"In WP Admin, the Elementor Editor section"},{"@type":"BreadcrumbList","@id":"https:\/\/elementor.com\/help\/custom-code-elementor-ai\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Help Center","item":"https:\/\/elementor.com\/help\/"},{"@type":"ListItem","position":2,"name":"Elementor AI","item":"https:\/\/elementor.com\/help\/elementor-ai\/"},{"@type":"ListItem","position":3,"name":"Code","item":"https:\/\/elementor.com\/help\/elementor-ai\/code\/"},{"@type":"ListItem","position":4,"name":"Add custom code using Elementor AI"}]},{"@type":"WebSite","@id":"https:\/\/elementor.com\/help\/#website","url":"https:\/\/elementor.com\/help\/","name":"Elementor","description":"","publisher":{"@id":"https:\/\/elementor.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elementor.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/elementor.com\/help\/#organization","name":"Elementor","url":"https:\/\/elementor.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","contentUrl":"https:\/\/elementor.com\/help\/wp-content\/uploads\/2025\/06\/images.png","width":225,"height":225,"caption":"Elementor"},"image":{"@id":"https:\/\/elementor.com\/help\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/c45726ca48a077e09198d78da3bc94d3","name":"Cliff Churgin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/elementor.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2957ab51166ce1ab4527af621d95bed3b7002ffaed172a69d8d0fb052d28c700?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2957ab51166ce1ab4527af621d95bed3b7002ffaed172a69d8d0fb052d28c700?s=96&d=mm&r=g","caption":"Cliff Churgin"}}]}},"_links":{"self":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/34871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/comments?post=34871"}],"version-history":[{"count":11,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/34871\/revisions"}],"predecessor-version":[{"id":161908,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/posts\/34871\/revisions\/161908"}],"wp:attachment":[{"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/media?parent=34871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/categories?post=34871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elementor.com\/help\/wp-json\/wp\/v2\/tags?post=34871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}