You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can write a JavaScript function to take the rendered logo image and then nest it withing an a tag with the desired hyperlink.
logo-hyperlink.html
<scripttype="text/javascript">functionhyperlink_logo(){letlogo=document.querySelector('img.slide-logo');constlogo_cloned=logo.cloneNode(true);constlink=document.createElement('a');// -----------------------------------------------------------// set the link for the logo here in `link.href` within quoteslink.href='https://stackoverflow.com';// -----------------------------------------------------------link.target='_blank';link.appendChild(logo_cloned);logo.replaceWith(link);};window.document.addEventListener("DOMContentLoaded",function(event){hyperlink_logo();});</script>
Set the link enclosed with quotes for the logo as the value of link.href. And then include this html file to the qmd file.
presentation.qmd
---title: Testingformat:
revealjs:
logo: SO.pnginclude-after-body: logo-hyperlink.html---## Quarto
The text was updated successfully, but these errors were encountered:
Implement the following from here,
You can write a JavaScript function to take the rendered logo image and then nest it withing an
a
tag with the desired hyperlink.logo-hyperlink.html
Set the link enclosed with quotes for the logo as the value of
link.href
. And then include this html file to the qmd file.presentation.qmd
The text was updated successfully, but these errors were encountered: