We're using our client's moodle site (3.5.5) and I have teacher access.
Course themes are not enabled and it uses a general theme all throughout the site.
We asked if course themes can be enabled but was told no.
We also can't install plugins. We only have access to the course, as a teacher and that's it.
We've created a course with lots of lessons in it and we've implemented our own css to make it look a lot better.
The css file was uploaded via a folder resource under the lesson
This is where things get tricky...
On every content page under every lesson, we put a link to the external stylesheet
So something like this
As you can see, the link is hardcoded, and while it will work for this existing course, once we do a course import/export, it won't work anymore because the context id (297491) of the module would have changed.
There are several issues I want to resolve but I just don't know how to, given the client restrictions and the limited access that we have.
1. Is there a way to get around hardcoding the path (with the context id) on the css link? I need this sorted so the course export/import will work as intended.
2. This is just a minor issue but with the course theme not enabled, is there a way to reference the stylesheets in just one (master) page as opposed to repeating it on every other page?
3. We need to make it work offline, on the moodle app, with the css file/s intact and working properly.
What sort of hacks or workaround can we do?
Please take note that I'm not a moodle expert and would really appreciate it if someone can point me in the right direction. Thank you very much.