On the topic of sharing articles on social media, I think it would be great if we had a dedicated meta tag for text that gets prefilled.
-
Stefan Bohacekreplied to Stefan Bohacek last edited by
Does this make sense? Is it useful?
-
oh, like: the share button on your site prefills it to whatever you on your site set it to? Could you than provide multiple share buttons with different "share opinions". XD
Oh no, that sounds confusing but also interesting.
-
@clear_dusk Yes, exactly! And I suppose you could, but that really could be a bit confusing and clutter up your page.
Either way, my sharing button also prefills any selected text on the page, which helps, I just need to make this feature easier to discover.
-
George Dinwiddiereplied to Stefan Bohacek last edited by
@stefan I’ll have to check this out on a computer, rather than my phone, because that sounds like a great button to offer.
-
Stefan Bohacekreplied to George Dinwiddie last edited by
@gdinwiddie Great, let me know what you think when you do!
-
George Dinwiddiereplied to Stefan Bohacek last edited by
@stefan
Looks like a lot of moving parts to set up. -
Stefan Bohacekreplied to George Dinwiddie last edited by
@gdinwiddie Are you referring to the amount of HTML that goes on the page?
GitHub - stefanbohacek/fediverse-share-button: Let your site's visitors share your work with the fediverse!
Let your site's visitors share your work with the fediverse! - stefanbohacek/fediverse-share-button
GitHub (github.com)
Yes, I don't disagree with you. Coincidentally, I was just replying to someone on here a moment ago about considering turning this into a web component to help isolate the styles from the rest of the page. That would also address this issue.
Appreciate the feedback!
-
George Dinwiddiereplied to Stefan Bohacek last edited by
@stefan
I was looking at the URL you shared before, https://stefanbohacek.com/blog/world-blog-day-2024/
It seemed like a bunch of JS, named element magic, and CSS were required. It might be a bunch of work to maintain. I find WordPress' use of CSS to be pretty opaque, anyway. I can't even find where to make small tweaks. -
Stefan Bohacekreplied to George Dinwiddie last edited by [email protected]
@gdinwiddie Yes, a bit of a challenge for me here is that I need to maintain two versions, one for the WordPress plugin, which, when finished, will not rely on JavaScript, and will need all the standard HTML form elements to function.
The hosted version will require JavaScript to handle the detection of the fediverse platform based on the URL, so that one could be reworked as a web component with minimal HTML needed.
Either way, this is all work in progress, and I appreciate your feedback!
-
George Dinwiddiereplied to Stefan Bohacek last edited by
@stefan
Good luck on your progress. -
Stefan Bohacekreplied to George Dinwiddie last edited by
@gdinwiddie Thank you!