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

Branding Themes and adding a logo

  • mnutbeem
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #4134 by mnutbeem
Branding Themes and adding a logo was created by 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?

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #4135 by ronm
Replied by ronm on 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/
The following user(s) said Thank You: mnutbeem

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #4136 by Fay
Replied by Fay on 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
The following user(s) said Thank You: mnutbeem

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #4137 by Fay
Replied by Fay on topic Branding Themes and adding a logo
Oh, didn't notice Ron giving similar advice!

Please Log in or Create an account to join the conversation.

Moderators: JohnSmith
Time to create page: 0.399 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo