The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Am I likely to run into trouble with this CSS aproach?

  • Paddy
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
5 jaren 3 maanden geleden #7349 door Paddy
I'm been tasked with finding how much tweakery I can do within a Xerte project.
Having been pleased to find I can add my own javascript and iframes within the HTML editor, I've now moved on to custom css.
To add some extra custom styles I've simply created a .css file offline, imported it via project properties, copied the url then added a stylesheet link to that in the HTML editor on my page in the project.
I was pleasantly surprised to find that it works, and that in-body stylesheet links are, apparently, permitted in HTML5.
But are there any pitfalls in this approach? ie will things break horribly down the line? I accept that I'll have to use add the link to all my HTML items, but that's not a major problem. Is there a better approach?
Thanks
- Paddy

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
5 jaren 3 maanden geleden #7350 door tom
There is no need to add a stylesheet link in the HTML editor.

There are optional properties at project/LearningObject (LO) level and for the Nottingham template on page level to add css directly in a textbox, and/or add a css file. Xerte will make sure that the css is loaded with the highest priority, so it will not get overruled by Xerte's own css.

Having said that, each upgrade potentially can negate your work, and so you will need to do some basic checks whether your customisations still work after an upgrade. We do our best to try to keep things working, but sometimes we have to change the structure to get forward.

If you are doing a lot of customisations, you should definitely consider to create your own theme. These are much easier to maintain. A change in a theme will work immediately on all the LO's that use the theme. If you do a lot of customisation in the LO's themselves and for whatever reason need to change some of it, you would potentially need to edit all the LO's.
De volgende gebruiker (s) zei dank u: Paddy

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • Paddy
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
5 jaren 3 maanden geleden #7352 door Paddy
Thanks - I hadn't been aware of all the different options at Learning Object level; that's what I was looking for.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
5 jaren 3 maanden geleden #7354 door Neil Pollock
Beantwoord door Neil Pollock in topic Am I likely to run into trouble with this CSS aproach?
Just to add to this, I do a lot of customisation to our Xerte resources (being fully aware, as Tom mentions, that there is the potential for things to break when updates are made). To give you an idea of the types of customisation, here are some examples:

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
5 jaren 2 maanden geleden #7366 door simonbarne
Beantwoord door simonbarne in topic Am I likely to run into trouble with this CSS aproach?
These Cardiff resources are very cool!

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.136 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo