WebSite X5Help Center

 
Kev M.
Kev M.
User

Adding a breadcrumb javascript to the template header  en

Auteur : Kev M.
Visité 1883, Followers 1, Partagé 0  
Mots-clés :: breadcrumbs,javascript

I have a breadcrumb javascript file saved in the directory with all of the webpages that are on my site. It is called "crumbs.js"

I want this script added to the template header so that it will run on all pages of my site.

I created a HTML box at the bottom of my template header and have inserted the following code to try and have the script appear:

<script type='text/javascript' src='crumbs.js'></script>

<script type='text/javascript'> <!-- doCrumbs(); //--> </script>

When I preview my site the script does not run and nothing appears at the bottom of my template header.

Can anybody help with this?

Posté le
2 RéPONSES
Incomedia
Michele C.
Incomedia

Hello Kev,

I cannot help very much with custom script beacuse it really depends on how it works. 

<script type='text/javascript'> <!-- doCrumbs(); //--> </script>

In this line there's a HTML comment, are you sure it's correct?

Lire plus
Posté le de Michele C.
Kev M.
Kev M.
User
Auteur

Let me double check the script and make sure its good.

Thanks

Lire plus
Posté le de Kev M.