8000 Is there a way to set the content of the footer in a custom theme? · marp-team · Discussion #573 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Is there a way to set the content of the footer in a custom theme? #573

Answered by yhatt
alexboly asked this question in Q&A
Discussion options

You must be logged in to vote

A common way is using content property within footer::before pseudo selector to prepend the specific content by CSS.

/* @theme your-theme */

footer::before {
  content: 'Copyright © 2025 Your Name';
}
---
theme: your-theme

# Footer directive should be defined as non-empty value to render <footer> tag for each slide page.
footer: " "
---

# Hello!

Alternative

As shown here, footer directive should be enabled as non-empty value, such as whitespace(s), to render the <footer> element for each slide page. If you want to let theme users show the content specified by theme CSS without using the footer directive, you can use section::before instead.

/* @theme your-theme */

section::before {
  c…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by alexboly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0