Repository navigation
Description
Bug description
This relates to discussion in #825 and comment in #1391 (comment)
When a custom footer is set to
format:
revealjs:
footer: Custom footerIt is possible to hide it on a specific slide using the trick of inserting an empty slide footer
# Slide 2
content
::: footer
:::
However, this does not work on first slide at first
---
format:
revealjs:
footer: Custom footer
---
# Slide 1
content
::: footer
:::
# Slide 2
content This is because the feature (or free riding feature) rely on the per side footer overwrite using a slidechanged event which does not happen when presentation is loaded first time
quarto-cli/src/resources/formats/revealjs/plugins/support/support.js
Lines 117 to 133 in 763b0ed
| deck.on("slidechanged", function (ev) { | |
| const prevSlideFooter = document.querySelector( | |
| ".reveal > .footer:not(.footer-default)" | |
| ); | |
| if (prevSlideFooter) { | |
| prevSlideFooter.remove(); | |
| } | |
| const currentSlideFooter = ev.currentSlide.querySelector(".footer"); | |
| if (currentSlideFooter) { | |
| defaultFooterDiv.style.display = "none"; | |
| const slideFooter = currentSlideFooter.cloneNode(true); | |
| handleLinkClickEvents(deck, slideFooter); | |
| deck.getRevealElement().appendChild(slideFooter); | |
| } else { | |
| defaultFooterDiv.style.display = "block"; | |
| } | |
| }); |
This means that in the example above if you go to slide 2 then back to slide 1, it will hide the footer.
Hiding footer on title slide can be useful when you want to do a custom one like in #1391 (comment) example (https://github.com/giabaio/quarto-slides/blob/main/assets/title-slide.qmd)
Having a real mechanism to hide a footer (like adding .no-footer class on a slide maybe ?) would be a plus
Activity
giabaio commentedon Jul 18, 2022
Thanks @cderv 👍
mcanouil commentedon Jun 8, 2023
FYI:
mcanouil commentedon Aug 12, 2023
FYI
paddyroddy commentedon Feb 5, 2026
For the slide number I had to do the following when using
slide-number: cgiabaio commentedon Feb 5, 2026
I think that the best way to deal with this is actually to modify the
title-slide.htmltemplate partial, for instance to include something likeThe key part is to add
data-footer="false", which is what would happen normally if, for any given page (apart from the title) you setThen, you can simply do
in the
ymlfile for your presentation and things should work perfectly (to remove the footer, at least). I believe some specific (but simple and effective) hack can work for other customisation of the title page...michael-l-AT commentedon Mar 17, 2026
Did the trick for me to hide to footer on the first slide.
On normal slides this worked:
## SLIDETITLE { footer="false"}