{"id":1431,"date":"2023-06-27T21:55:06","date_gmt":"2023-06-27T18:25:06","guid":{"rendered":"https:\/\/www.spicom.com\/help\/?p=1431"},"modified":"2023-06-27T22:48:51","modified_gmt":"2023-06-27T19:18:51","slug":"custom-js-code","status":"publish","type":"post","link":"https:\/\/www.spicom.com\/help\/custom-js-code\/custom-js-code","title":{"rendered":"Custom JS Code"},"content":{"rendered":"<section class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Here&#8217;s a step-by-step guide for the <strong>&#8220;Custom JS Code&#8221;<\/strong> section in the Customizer of Aida WordPress theme:[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_single_image image=&#8221;1433&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221; css_animation=&#8221;slideInUp&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<ol>\n<li><strong>Open the Customizer:<\/strong>\n<ul>\n<li>To access the Customizer, go to your WordPress dashboard and navigate to the left-hand toolbar. Click on &#8220;Customize.&#8221;<\/li>\n<\/ul>\n<\/li>\n<li><strong>Go to the General section:<\/strong>\n<ul>\n<li>Once the Customizer opens, look for the &#8220;General&#8221; option in the left-hand menu and select it.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Navigate to the Custom JS Code section:<\/strong>\n<ul>\n<li>In the General section, locate the option called &#8220;Custom JS Code&#8221; and click on it.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add custom JavaScript in the head section:<\/strong>\n<ul>\n<li>Under the &#8220;Custom Javascript in Head&#8221; section, you can add your custom JavaScript code.<\/li>\n<li>Note: Do not use the <code>&lt;script&gt;<\/code> tag.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Execute the code:<\/strong>\n<ul>\n<li>Before saving, make sure to execute the custom JavaScript code you&#8217;ve added in the head section.<\/li>\n<li>This is necessary to ensure the code functions correctly.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Add custom JavaScript in the footer section:<\/strong>\n<ul>\n<li>In the &#8220;Custom Javascript in Footer&#8221; section, you can add additional custom JavaScript code.<\/li>\n<li>Remember not to use the <code>&lt;script&gt;<\/code> tag.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Execute the code:<\/strong>\n<ul>\n<li>Just like before, be sure to execute the custom JavaScript code you&#8217;ve added in the footer section before saving.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Save your changes:<\/strong>\n<ul>\n<li>After adding and executing your custom JavaScript code, click on the &#8220;Save &amp; Publish&#8221; button located at the top-right of the Customizer toolbar to save your changes.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>With this guide, you can easily add and execute custom JavaScript code in the head and footer sections of the &#8220;Custom JS Code&#8221; area in the Customizer of your WordPress theme. Remember to avoid using the <code>&lt;script&gt;<\/code> tag and execute the code before saving.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<div class=\"likebtn_container\" style=\"text-align:center;\"><!-- LikeBtn.com BEGIN --><span class=\"likebtn-wrapper\"  data-identifier=\"post_1431\"  data-theme=\"mini\"  data-icon_l=\"hrt1\"  data-icon_d=\"hrt1\"  data-show_dislike_label=\"true\"  data-counter_type=\"percent\"  data-white_label=\"true\"  data-popup_content_order=\"false\"  data-i18n_like=\"Like\"  data-i18n_dislike=\"Dislike\"  data-style=\"\"  data-unlike_allowed=\"\"  data-show_copyright=\"\"  data-item_url=\"https:\/\/www.spicom.com\/help\/custom-js-code\/custom-js-code\"  data-item_title=\"Custom JS Code\"  data-item_date=\"2023-06-27T21:55:06+03:30\"  data-engine=\"WordPress\"  data-plugin_v=\"2.6.50\"  data-event_handler=\"likebtn_eh\" ><\/span><!-- LikeBtn.com END --><\/div><\/section>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_column_text]Here&#8217;s a step-by-step guide for the &#8220;Custom JS Code&#8221; section in the Customizer of Aida WordPress theme:[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column][vc_single_image image=&#8221;1433&#8243; img_size=&#8221;full&#8221; alignment=&#8221;center&#8221; css_animation=&#8221;slideInUp&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text] Open the Customizer: To access the Customizer, go to your WordPress dashboard and navigate to the left-hand toolbar. Click on &#8220;Customize.&#8221; Go to the General section: Once the Customizer opens, look for the &#8220;General&#8221; [&hellip;]<\/p>\n<div class=\"likebtn_container\" style=\"text-align:center;\"><!-- LikeBtn.com BEGIN --><span class=\"likebtn-wrapper\"  data-identifier=\"post_1431\"  data-theme=\"mini\"  data-icon_l=\"hrt1\"  data-icon_d=\"hrt1\"  data-show_dislike_label=\"true\"  data-counter_type=\"percent\"  data-white_label=\"true\"  data-popup_content_order=\"false\"  data-i18n_like=\"Like\"  data-i18n_dislike=\"Dislike\"  data-style=\"\"  data-unlike_allowed=\"\"  data-show_copyright=\"\"  data-item_url=\"https:\/\/www.spicom.com\/help\/custom-js-code\/custom-js-code\"  data-item_title=\"Custom JS Code\"  data-item_date=\"2023-06-27T21:55:06+03:30\"  data-engine=\"WordPress\"  data-plugin_v=\"2.6.50\"  data-event_handler=\"likebtn_eh\" ><\/span><!-- LikeBtn.com END --><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104],"tags":[],"yst_prominent_words":[],"_links":{"self":[{"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/posts\/1431"}],"collection":[{"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/comments?post=1431"}],"version-history":[{"count":3,"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/posts\/1431\/revisions"}],"predecessor-version":[{"id":1435,"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/posts\/1431\/revisions\/1435"}],"wp:attachment":[{"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/media?parent=1431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/categories?post=1431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/tags?post=1431"},{"taxonomy":"yst_prominent_words","embeddable":true,"href":"https:\/\/www.spicom.com\/help\/wp-json\/wp\/v2\/yst_prominent_words?post=1431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}