Hi Jesse,
Before we go further, I explain it further why it can’t be added there. This tag is HTML similar to <div></div>
<script></script>
It’s not a javascript, it’s just added so the browser knows that the area contains the javascript. The javascript is what’s within it. The Theme Options > JS automatically adds <script></script>
since you’re supposed to only add javascript, so adding another <script></script>
will result to this
<script>
<script></script>
</script>
Then the solution is removing all of them and make sure it only contains this javascript code
(function($){
$(window).on('load', function(){
$('#x-btn-navbar').trigger('click');
});
})(jQuery);
Then add this code to your child theme’s functions.php for those other embed codes.
add_action('wp_footer', 'my_custom_embed_code', 999999999);
function my_custom_embed_code () { ?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-125068227-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-125068227-1');
</script>
<script type="text/javascript" src="https://cdn.ywxi.net/js/1.js" async></script>
<script data-obct type="text/javascript">
/** DO NOT MODIFY THIS CODE**/
!function(_window, _document) {
var OB_ADV_ID='00e978b63b74ea3fd3bbd0878a945d6a8b';
if (_window.obApi) {var toArray = function(object) {return Object.prototype.toString.call(object) === '[object Array]' ? object : [object];};_window.obApi.marketerId = toArray(_window.obApi.marketerId).concat(toArray(OB_ADV_ID));return;}
var api = _window.obApi = function() {api.dispatch ? api.dispatch.apply(api, arguments) : api.queue.push(arguments);};api.version = '1.1';api.loaded = true;api.marketerId = OB_ADV_ID;api.queue = [];var tag = _document.createElement('script');tag.async = true;tag.src = '//amplify.outbrain.com/cp/obtp.js';tag.type = 'text/javascript';var script = _document.getElementsByTagName('script')[0];script.parentNode.insertBefore(tag, script);}(window, document);
obApi('track', 'PAGE_VIEW');
</script>
<?php }
And please check this for child theme installation https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57
Thanks!