![]() |
|
Thread Tools |
#1
|
||||
|
||||
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:
No members have liked this post.
|
#2
|
||||
|
||||
Why would you edit that template?
What is it you are trying to add? No members have liked this post.
|
#3
|
||||
|
||||
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:
No members have liked this post.
|
#4
|
||||
|
||||
Do you want to include those css and js files on every page or in a particular page only?
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic No members have liked this post.
|
#6
|
||||
|
||||
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.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#7
|
|||
|
|||
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. No members have liked this post.
|
#8
|
||||
|
||||
Go to Styles > find your style > Edit Templates > find the "header" template and add the code there.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#9
|
|||
|
|||
Originally Posted by Lynne
I asked if there was an easy way to do this for all styles in one place.![]()
and also what does the form I mentioned? Not for that exactly? No members have liked this post.
|
#10
|
||||
|
||||
Can you post a link to your forum?
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic No members have liked this post.
|
#12
|
||||
|
||||
Typically, your 'top' style is the one where you edit templates, and the child forums is where you just change colors. So, editing the top style would be the only thing you need to do. If you don't have it set up this way, then you will need to edit every style.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) The following members like this post: sea_blue
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 11:24.