Skip to content

How can I add custom titles to untitled slides in the Reveal.js menu? #10879

Answered by danielvartan
danielvartan asked this question in Q&A
Discussion options

You must be logged in to vote

To assist others, since one of the goals of this discussion tab on GitHub is to build a database of answers, here’s the solution:

Simply add the data-menu-title attribute to the slide (see the example below):

---
title: "Example"
format: revealjs
---

## {data-menu-title="Custom Menu Title 1"}

Some content.

## {data-menu-title="Custom Menu Title 2" background-iframe="https://quarto.org/" background-interactive=true}

---

Note: This will not work for slides created using `---`. 

In these cases, it's best to use an empty heading, like so: `# {data-menu-title="Custom Menu Title 3"}`.

---

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@danielvartan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by danielvartan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
revealjs Issues with the revealjs format
2 participants