End of Support for Joomla 3 - Forum closed

Eintragen von Javascript im Header

Eintragen von Javascript im Header was created by fchojinski

Posted 6 years 9 months ago #17859
Hallo,

ich möchte gerne auf meiner Seite Fußballergebnisse von fussball.de einbinden. Hierzu kann man sich bei fussball.de ein Widget generieren. Dieses besteht aus einem Bereich, der in den Header soll:
<script type="text/javascript"
src=" www.fussball.de/static/layout/fbde2/egm//js/widget2.js ">
</script>
und einem Bereich, der dann in einen Artikel eingebunden wird:
<div id="widget1"></div>
<script type="text/javascript">
new fussballdeWidgetAPI().showWidget('widget1', '020J56JSD8000000VS541L4GVTCQO6PF');
</script>

Wie bekomme ich das Ding in den Header? Händisch oder gibts eine elegantere Lösung?

Vielen Dank schon mal vorab und viele Grüße
Frank

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Eintragen von Javascript im Header

Posted 6 years 9 months ago #17860
Hallo, Scripts können sie wie folgt eintragen: ( Warp7)
Template Styles > Options > Settings > runter scrollen > Additional Scripts

Wenn sie mir das Template gesagt hätten, hätte ich ihnen auch sagen können in welches PHP File sie den COde einfügen müssen.
Last Edit:6 years 9 months ago by joomlaplates
Last edit: 6 years 9 months ago by joomlaplates.

Please Log in or Create an account to join the conversation.

Replied by fchojinski on topic Eintragen von Javascript im Header

Posted 6 years 9 months ago #17862
ups, sorry. Hab ich vergessen. Hatte es erst im Betreff und dann nicht mehr übernommen. Es ist das life template. Wäre super, wenn Sie mir verraten, wo es rein muss (php)

Please Log in or Create an account to join the conversation.

Replied by fchojinski on topic Eintragen von Javascript im Header

Posted 6 years 9 months ago #17864
Hallo,

noch eine Rückfrage:
Bei den additional scripts steht ja:

Additional Scripts
Insert your Google Analytics tracking code or any other additional scripts here. They will be added before the closing body tag in the theme.

Der erste Teil vom Script muss aber in den Header, oder nicht?

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Eintragen von Javascript im Header

Posted 6 years 9 months ago #17869
Sie können das Script auch direkt in das PHP FIle einfügen: Warp 7)

layouts/theme.php

The following user(s) said Thank You: gf@mso365.cloud

Please Log in or Create an account to join the conversation.

Replied by fchojinski on topic Eintragen von Javascript im Header

Posted 6 years 9 months ago #17872
Prima, das hat super funktioniert. Vielen Dank hierfür!

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2022 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License