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

Bootstrap template background images

  • azandbergen
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 8 ans 8 mois #4837 par azandbergen
Bootstrap template background images a été créé par azandbergen
Is it possible to adjust the background images in the topbanner (frame) per page (tab)?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 8 mois #4838 par Fay
Réponse de Fay sur le sujet Bootstrap template background images
I'm afraid there's no way of doing this at the moment but I'll add it to the wish list as I think this would be a nice feature.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 8 mois #4849 par Neil Pollock
Réponse de Neil Pollock sur le sujet Bootstrap template background images

Aaldrie Zandbergen écrit: Is it possible to adjust the background images in the topbanner (frame) per page (tab)?


The way I do it is to use a pseudo element for the jumbotron background image, then add the image-specific css to the top of each section.

So, you could add this to apply to the whole project:
Code:
.jumbotron::before { content: ' '; display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.6; }

Then you could add this css to each section, with a different URL for each different background image:
Code:
.jumbotron::before { background-image: url('...'); background-size: cover; background-position: center; }

Here's an example (I've adjusted the header so it fills the entire page, but the principle remains the same): xerte.cardiff.ac.uk/play_6542

Connexion ou Créer un compte pour participer à la conversation.

  • azandbergen
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 8 ans 7 mois #4858 par azandbergen
Réponse de azandbergen sur le sujet Bootstrap template background images
Hi Neil,

Thats awesome!

I can add a style to the entire project, but no ccs to the sections. There is only the possibility to add a script. Can you help?

Best regards and
thank you in advance
Aaldrie Zandbergen
Deltion College
Zwolle / The Netherlands
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 7 mois - il y a 8 ans 7 mois #4859 par Neil Pollock
Réponse de Neil Pollock sur le sujet Bootstrap template background images
You can add section level CSS by adding a "New HTML Code..." page. Just add your CSS here but wrap it in <style> </style> tags. Make sure you untick the "Show Title" box.

A bit of a workaround, but it works, and still keeps the CSS sort of separate from the HTML...
Dernière édition: il y a 8 ans 7 mois par Neil Pollock.

Connexion ou Créer un compte pour participer à la conversation.

  • azandbergen
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 8 ans 7 mois #4860 par azandbergen
Réponse de azandbergen sur le sujet Bootstrap template background images
OK!

I can now adjust the headers of the pages, but how do I get the pictures fullscreen and small when scrolling the page?

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.159 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo