Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social Share? #31

Open
mweth opened this issue Feb 3, 2024 · 1 comment
Open

Social Share? #31

mweth opened this issue Feb 3, 2024 · 1 comment

Comments

@mweth
Copy link

mweth commented Feb 3, 2024

Is there an easy way to add a "share to [social]" link to the gallery view of images? It would work nicely below the image and before the caption.

@blueswen
Copy link
Owner

You can try using Advanced Description to add a link to the caption.

![Castelo de São Jorge, Lisbon, Portugal](../images/gallery/blueswen-lisbon.jpeg){ width="500px" data-title="Cabo da Roca, Portugal. Credit: Blueswen" data-description=".custom-desc1" }

<div class="glightbox-desc custom-desc1">
<a href="https://twitter.com/intent/tweet?text=">Share on Twitter</a>
<p>Saint George's Castle is a historic castle in the Portuguese capital of Lisbon, located in the freguesia of Santa Maria Maior.</p>
<p>Human occupation of the castle hill dates to at least the 8th century BC while the first fortifications built date from the 1st century BC.</p>
</div>
</div>

Social Share Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants