Search the Community
Showing results for tags 'head'.
-
Trying to add custom data via javascript to the head tag
EFAFAdmin posted a question in Coding and Customization
Site URL: https://evergreenfineartsfestival.com Hi my site has many pages that include the current year and some other data. I'm trying to inject that data via the head tag by clicking into Settings->Advanced->Code Injection, then on the pages using a code block to access the data. The code injection is: <script type="text/javascript"> var year = "2021"; var lastYear = "2020"; var nextYear = "2022"; var event = "55th"; var friday = "27"; var saturday = "28"; var sunday = "29"; function docWrite(variable) { document.write(variable)- 3 replies
-
- javascript
- variable
-
(and 2 more)
Tagged with:
-
Hello, I'm currently trying to set-up google adsense on our site to serve advertising. Google gave us code to past into the <head> </head> tags of our site, which was done via code injection from the advanced settings menu. However, Google keeps returning the application saying the code is missing. On looking into the code of the site, i can see that code pasted in head injection actually falls outside of the <head> </head> tags - does anyone know why this might be and how i could possible solve this issue? Many thanks in advance