Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1356

Templates for Joomla! 4.x • Re: Hiding code or scripts in Cassiopeia

$
0
0
Thanks for your reply and assistance.

I have been on the Joomla platform since 2.5 and I have always used Rockettheme for templates and extensions and now I am migrating to the Cassiopeia template for the first time. I have not had to do a conversion of the Rockettheme site into a Cassiopeia since the site I am working on was small enough to rebuild everything page for page after setting up the structure of the Cassiopeia template.

Being new to Cassiopeia, I think I am now gaining an understanding that I may need to work more in the template code than in module positions as I did in Rockettheme. But please correct me in this notion if I am wrong. Of course I would like to avoid having to re-enter scripts and/or code after a template update takes place.

Here are various template script/code elements (pasted below) I will need to migrate to reassemble what I had inserted into various module positions of the Rockettheme template. Funny, but I could not locate the Google Analytics scripts, but that's another matter and I have included enough here to illustrate the point of contention:

<head>
<script async src="https://pagead2.googlesyndication.com/p ... 5524711234"
crossorigin="anonymous"></script>
</head>

<script async src='https://cse.google.com/cse.js?cx=partne ... cript><div class="gcse-searchbox-only"></div>

<meta name="yandex-verification" content="ed77641384c886ca" />

<!-- Cookie Consent by https://www.PrivacyPolicies.com -->
<script type="text/javascript" src="//www.privacypolicies.com/public/cookie-c ... "></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palette":"dark","language":"en","website_name":"https://www.actorschecklist.com","cookies_policy_url":"https://www.actorschecklist.com/about-us/100-privacy-policy"});
});
</script>

<noscript>Cookie Consent by <a href="https://www.PrivacyPolicies.com/cookie-consent/" rel="nofollow noopener">PrivacyPolicies.com</a></noscript>
<!-- End Cookie Consent -->

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- WordPress/Joomla Skyscraper -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:600px"
data-ad-client="ca-pub-2763125524711234"
data-ad-slot="8539282668"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>


<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- WordPress/Joomla Skyscraper -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:600px"
data-ad-client="ca-pub-2763125524711234"
data-ad-slot="8539282668"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p></p>


<p></p>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-page" data-href="https://www.facebook.com/coolfiretechnology/" data-tabs="timeline" data-width="400" data-height="800" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"></div>
<p></p>


<p></p>
<script type="text/javascript">
amzn_assoc_placement = "adunit0";
amzn_assoc_search_bar = "true";
amzn_assoc_search_bar_position = "top";
amzn_assoc_tracking_id = "cftechdotcom01-20";
amzn_assoc_ad_mode = "search";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_title = "Search Results from Amazon";
amzn_assoc_default_search_phrase = "Search Amazon";
amzn_assoc_default_category = "All";
amzn_assoc_linkid = "ef8bcb2a4fd4da05ee407c08f05089b8";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>
<p></p>



<p></p>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Adsense Link Ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2763125524711234"
data-ad-slot="2719023467"
data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<p></p>


<p></p>
<div class="alignleft">
<script type="text/javascript">
amzn_assoc_ad_type = "banner";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_placement = "assoc_banner_placement_default";
amzn_assoc_banner_type = "ez";
amzn_assoc_p = "11";
amzn_assoc_width = "120";
amzn_assoc_height = "600";
amzn_assoc_tracking_id = "cftechdotcom01-20";
amzn_assoc_linkid = "da3b50833359ea000c4a996dae851afb";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1"></script>
</div>
<p></p>


<p></p>
<a class="twitter-timeline" href="https://twitter.com/CoolFireTech">Tweets by CoolFireTech</a> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<p></p>


<p></p>
<div class="alignleft">
<script type="text/javascript">
amzn_assoc_ad_type = "banner";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_placement = "assoc_banner_placement_default";
amzn_assoc_campaigns = "amazonhomepage";
amzn_assoc_banner_type = "rotating";
amzn_assoc_p = "12";
amzn_assoc_width = "300";
amzn_assoc_height = "250";
amzn_assoc_tracking_id = "cftechdotcom01-20";
amzn_assoc_linkid = "2c44bdfc14ff3aef25c6edf7641f4656";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1"></script>
</div>
<p></p>

Eager to hear your feedback. And the issue over site security came a query I posted to Gemini AI. Thanks for the assistance!

Statistics: Posted by hpaumit — Mon Aug 19, 2024 4:09 am



Viewing all articles
Browse latest Browse all 1356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>