![]() |
How use Common Template editor
i want include a script and style in each page, for all styles.
After searching for the easy way, I found style manager > common templates. It looks exactly my need! but anything I write in the header ("123" or a script\style tags) causes the page to go wrong with the error in the browser console: Code:
footer-rollup-531.js:352 Uncaught ReferenceError: pageData is not defined |
Why would you edit that template?
What is it you are trying to add? |
i want add the https://highlightjs.org/ library.
I've already created a BBC tag, and all I have to do is add the script and style: Code:
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"> |
Do you want to include those css and js files on every page or in a particular page only?
|
every page.
|
Where in the header template did you add those lines? I added them to just above the </head> tag and I am getting no errors on my test site.
|
a. I did not add them directly to the template, but I used this form: admincp > style manager > thems > go to "common template". https://www.vbulletin.com/docs/html/...mmon_templates.
i add there in "header" field. if the right way it edit directly the template, I would love to know what and how, for apply globaly all styles at onc. b. not only if I write the code I brought brings an error. But even if I just write "123". This is indeed written on the page, but the whole page goes wrong as if it lacks a critical closing tag. |
Go to Styles > find your style > Edit Templates > find the "header" template and add the code there.
|
Quote:
and also what does the form I mentioned? Not for that exactly? |
Can you post a link to your forum?
|
All times are GMT. The time now is 04:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|