-
-
July 3, 2024 at 8:33 am #20732SaptxParticipant
I purchased the theme and I’m very happy with it.
However, I think that, like adding custom CSS, it can be very useful to be able to insert custom scripts.Maybe to add some tracking code or to be able to add conditional functions (if category equals XX then CSS background equals red).
The best location would be in Admin Panel->Theme->Custom CSS.
You could insert a Custom Script section here.Even better if there were 4 code fields:
– Custom script at the top of the page
– Custom script before </head>
– Custom script after <body>
– Custom script starts </body> -
January 28, 2026 at 8:13 am #24538SaptxParticipant
I did it with a third-party plugin.
You can find it on GitHub. -
January 29, 2026 at 6:31 am #24588SaptxParticipant
Questo è il plugin, molto semplice:
osTicket-Plugins-Extra-Frontend-Resources
(spero di non violare regole del forum riportando il link).
Funziona solo aggiungendo un
Signal::send('staff.header.extra', null);al codice sorgente di osTicket.Io lo trovo molto utile perché mi permette di aggiungere codice solo se l’utente è staff o admin.
-
You must be logged in to reply to this topic.