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

Branding Themes and adding a logo

  • mnutbeem
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
9 jaren 9 maanden geleden #4134 door mnutbeem
Branding Themes and adding a logo werd gestart door mnutbeem
Hi all,

I'm currently investigating creating branded themes (specifically for content that may end up being used externally to the institution).

Duplicating a theme, renaming and changing the CSS in terms of 'approved colours' has been fine, but I've drawn a blank when it comes to adding a logo. My CSS is pretty rusty so reaching out for any helpful tips in how to approach this.

I know that a user can manually add an icon to a header, but how can I do that at a theme level?

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
9 jaren 9 maanden geleden #4135 door ronm
Beantwoord door ronm in topic Branding Themes and adding a logo
You can easily use something like background-image:(url(); if you want to use just css but it depends where you want the logo to appear and how you want to control the display of the logo in relation to other elements at different resolutions etc. You'll probably need to use media queries so there isn't any overlap with header text etc
Alternatively each of the included themes also has a .js file (mostly empty by default) where you can use jquery to add additional elements. Have a look at the btnTopPurple theme and btnTopPurple.js as an example. In that case not adding a logo but how to add/move elements around.
HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
De volgende gebruiker (s) zei dank u: mnutbeem

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
9 jaren 9 maanden geleden #4136 door Fay
Beantwoord door Fay in topic Branding Themes and adding a logo
Hi Martin

I haven't done this myself so someone might come along with a better answer.

You can include a js file in the theme folder to make changes to the interface that can't be done with just css (you can see an example in the theme 'btnTopPurple' where there's a js file used to move the buttons from the footer bar to the header). You could use javascript/jquery in this file to insert a div or img tag into the header and then put the image in there. You would need to save your icon image in the theme folder and the file path to the image would have to use this format:
Code:
'<img src="' + x_themePath + 'btnTopPurple/icon.png">'

I hope this helps
De volgende gebruiker (s) zei dank u: mnutbeem

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
9 jaren 9 maanden geleden #4137 door Fay
Beantwoord door Fay in topic Branding Themes and adding a logo
Oh, didn't notice Ron giving similar advice!

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

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