Disabling "click for fullscreen" behaviour for images and footnotes #195
-
I have the requirement to use some pictures just for decoration on a course site so I do not want them to be clickable I would love to use the gallery for this but because all the logos I am showing here have a transparent background, it looks really bad. Also I do not want to have the click-for-fullscreen behaviour. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Disabling clickable imagesThe image part is quite simple, try something like this: ### Linux als Betriebssystem
<!-- style="margin:2em; display:inline-block; width: 150px" -->
![Ubuntu](https://upload.wikimedia.org/wikipedia/commons/7/76/Ubuntu-logo-2022.svg)<!-- data="true" --> The click and enlarge behavior for images is triggered, if the user has NOT defined some custom stiles/CSS. You can modify the width for example, change the background or define a random parameter like data-something ... Gallery with backgroundBut If you want to have a gallery and change the background, you can try this: ### Linux als Betriebssystem
![Ubuntu](https://upload.wikimedia.org/wikipedia/commons/7/76/Ubuntu-logo-2022.svg "Ubuntu")<!-- style="background-color: lightgray" -->
![Debian](https://upload.wikimedia.org/wikipedia/commons/4/4a/Debian-OpenLogo.svg "debian")<!-- style="background-color: lightgray" -->
![Archlinux](https://upload.wikimedia.org/wikipedia/commons/e/e8/Archlinux-logo-standard-version.png "Arch-Linus")<!-- style="background-color: lightgray" -->
![Fedora](https://upload.wikimedia.org/wikipedia/commons/0/09/Fedora_logo_and_wordmark.svg "Fedora")<!-- style="background-color: lightgray" --> In this case, styling will be applied. But I don't know why the Ubuntu-image is not displayed at all ... The others work as expected ... FootnotesDo you mean, that you only want to disable that clicking onto a footnote will show the associated text? |
Beta Was this translation helpful? Give feedback.
Footnote is a button, where the
onclick
function is defined inwindow.LIA.showFootnote
. You can overwrite this function and implement your own behavior like this: