<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>What is the recommended way to add custom javascript to an X child theme? &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/feed/</link>
		<description></description>
		<lastBuildDate>Mon, 13 Oct 2025 09:23:00 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23190</guid>
					<title><![CDATA[What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23190</link>
					<pubDate>Fri, 14 Mar 2014 13:10:25 +0000</pubDate>
					<dc:creator>M Pez</dc:creator>

					<description>
						<![CDATA[
						<p>I have added some custom code to the primary theme&#8217;s JavaScript file. It&#8217;s working fine but it will obviously get overwritten during an update. </p>
<p>Can you please tell me the recommended way to do this with my child theme? </p>
<p>This is the JavaScript that I am trying to insert:<br />
<code>jQuery( window ).load( function(){jQuery( &#039;.pez-init-masonry&#039; ).animate( { opacity : 1 }, 500 );});</code></p>
<p>Like I said, I have it working, I am just trying to understand how I can modify JavaScript in X so it survives an update. </p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23386</guid>
					<title><![CDATA[Reply To: What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23386</link>
					<pubDate>Sat, 15 Mar 2014 05:49:01 +0000</pubDate>
					<dc:creator>Kory</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Michelle,</p>
<p>The quickest and easiest way to do this is to add it via the <strong>Custom</strong> section of the Customizer, but that is really best for things you aren&#8217;t changing or editing a lot (i.e. Google Analytics). If you need to implement something a little more robust, <a href="http://theme.co/x/member/forums/topic/editing-header-and-footer/" title="Custom Output" target="_blank" rel="nofollow">this post</a> should help you out.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23441</guid>
					<title><![CDATA[Reply To: What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23441</link>
					<pubDate>Sat, 15 Mar 2014 12:22:22 +0000</pubDate>
					<dc:creator>M Pez</dc:creator>

					<description>
						<![CDATA[
						<p>OMG, has that JavaScript option always been in the customizer? I don&#8217;t know how I ever missed that.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23543</guid>
					<title><![CDATA[Reply To: What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-23543</link>
					<pubDate>Sun, 16 Mar 2014 11:26:19 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey Michelle,</p>
<p>You&#8217;re welcome and yes, it has always been there.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-890589</guid>
					<title><![CDATA[Reply To: What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-890589</link>
					<pubDate>Tue, 19 Apr 2016 18:31:18 +0000</pubDate>
					<dc:creator>brandonmorgan</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>I would like to take advantage of the Customizer &gt; Custom &gt; JavaScript (vs functions.php or third party plugins such as &#8220;Per Page Add to Head&#8221;).  I notice though that the Customizer double-wraps the script tag I place in there with &lt;script id=&#8221;x-customizer-js&#8221;&gt;, which in source code view appears to deactivate the script tag I placed— though I&#8217;m not sure (see attached screenshot).  </p>
<p>I would like to use the Customizer Custom JavaScript option with confidence.  <strong> Do I include the &lt;script&gt; tag in the JavaScript I place in the Customizer Custom JavaScript (the double-wrapping is a non-issue), or do I place just the raw JavaScript without the &lt;script&gt; tag?  Please clarify.</strong>  </p>
<p>Thank You.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-891282</guid>
					<title><![CDATA[Reply To: What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-891282</link>
					<pubDate>Wed, 20 Apr 2016 06:22:33 +0000</pubDate>
					<dc:creator>Rupok</dc:creator>

					<description>
						<![CDATA[
						<p>Hi <a href="https://theme.co/archive/users/brandonmorgan/" class="bbp-user-mention bbp-user-id-68369"> @brandonmorgan</a></p>
<p>Thanks for updating the thread. You should not add the script tag within custom JS field. Just place your raw script there. </p>
<p>Hope this makes sense.</p>
<p>Cheers! </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-995911</guid>
					<title><![CDATA[Reply To: What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-995911</link>
					<pubDate>Tue, 17 May 2016 17:55:13 +0000</pubDate>
					<dc:creator>shivagarwal</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>I am using the custom js for adding a small javascript function. I don&#8217;t see anything called custom.js in the list of javascript scripts in the page.</p>
<p>I get a function not defined error. Do I need to do anything else other than just add my javascript to custom js?<br />
How do I make sure that my script actually got added. Which file can I see it?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-995993</guid>
					<title><![CDATA[Reply To: What is the recommended way to add custom javascript to an X child theme?]]></title>
					<link>https://theme.co/archive/forums/topic/what-is-the-recommended-way-to-add-custom-javascript-to-an-x-child-theme/#post-995993</link>
					<pubDate>Tue, 17 May 2016 18:55:05 +0000</pubDate>
					<dc:creator>Rupok</dc:creator>

					<description>
						<![CDATA[
						<p>Hi <a href="https://theme.co/archive/users/shivagarwal/" class="bbp-user-mention bbp-user-id-75242"> @shivagarwal</a></p>
<p>Custom JS will be printed as internal script not in external file like custom.js. Let&#8217;s open the page source and find (CMD/CTRL + F) the code.</p>
<p>Hope this makes sense. </p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

