Post signatures

I would love to have this feature(d)!

Thanks again for everyone’s input on this! I’m happy to announce we’ve just released this feature. You can now find it in the Write.as add-on store for just $10 to enable it permanently. It’ll also be open to everyone in WriteFreely shortly – see writefreely#330.

You’ll notice there’s now a “Post Signature” section on your blog’s Customize page, where you can enter Markdown, HTML, and shortcodes like our email subscription box (<!--emailsub-->) to add them to the end of every post.

Here’s a quick demo of how it all works:

As always, we’d love to hear your feedback on this new feature!

3 Likes

Just wondering if a mailto link will work on the Post Signatures? I tried adding one manually on a post and it gets stripped out.

Yep! It should work just fine – I just tested with:

[email me](mailto:matt@example.com)

What was the Markdown you tried out in the post? Just want to make sure it’s not an issue we should fix.

Ah interesting, I didn’t know you could do it like that using Markdown.

Anyway, I was trying the following:

<a href="mailto:email@example.com">Send Email</a>

<a href="mailto:email@example.com?subject=Mail from our Website">Send Email</a>

So the first one would work and render as a link. The second one with the subject field wouldn’t show up as a link.

Is there an option for Post Signatures to not show up on Pinned Pages?

Not yet @dino but it’s definitely something we can look into. I am wondering if this is a more wider enough consideration to make a default for everyone or if having a shortcode for “no post signature” would help?

I’m fine with a shortcode option, because otherwise I have to write Javascript to remove the signatures from my Pinned Pages.

Hmm, maybe it makes sense to not include the Post Signature on pinned posts at all? (Just like how we leave out dates on pinned posts.) What does everyone think of that?

3 Likes

I am very tempted by the Post Signatures add-on.

This would allow me, among other things, to mention my Mastodon account at the end of each post, so I will be directly notified on Mastodon of any replies from readers. This would be a first step to interact with my readers. At least until Remark.as is available :slight_smile:

I still have a question before giving in to the temptation: if I activate the add-on now, will it impact my already published posts? Or will the signature only be added at the end of new posts, those published after the add-on has been activated?

The signature will be added to already published posts as well as newer posts. Hope that clarifies things!

1 Like

Great! Thank you for responding so quickly! It’s very clear and it’s exactly what I was hoping for! Let’s go and buy this nice add-on :slight_smile:

Can we get this option implemented? Or at least a shortcode that I can add to my pinned pages so the post signature won’t show up.

1 Like

I am with @dino though on removing them from pinned posts entirely. Totally open to use cases where people want the signatures.

Maybe one way to give people options is to give Post signatures their own div when added to posts, something like:

<div id="signature"><p>This is my signature</p></div>

That way you can target it for custom JavaScript. I know it’d be yet another JavaScript hack but it’d be an easy workaround to allow flexibility.

1 Like

This works for me too. Part of the reason I cannot remove the signature from my pinned pages is because I cannot target it with Javascript. I believe it renders as just a <p> element. And because of that, I’ve stopped using it.

2 Likes

Do you still plan to make this part of pro?

Just to say, I’m in favour of not displaying signatures on pinned post at all. We all used pinned post to create a dedicated page like “contact”, “about”, etc. where signatures do not have much sense.

And even if it would, then nothing would prevent to add it manually at the bottom, like it was before. Is it that hard to remove signatures from pinned post ?

Otherwise, I’ll just stop using it as @dino. But seems a little bit unfair to have paid for this feature (which I did it mostly to support write.as which I found really cool, both the environment and community), and ending not using it…

Thank you in advance :slight_smile:

I managed to figure out how to target it, so I have a workaround to this. I was going to write a post about it, but haven’t gotten to it yet. But yes, I would still like the option to just not have it show up on pinned pages.

Anyway, here is my workaround.

First of all, this is my post signature:

<div id="post-signature">
<div class="alert-info">
Find me on Mastodon (@dino@writing.exchange) or Micro.blog (<a href="https://micro.blog/Dino" target="_blank">@Dino</a>)
</div>
</div>

Note the post-signature id on the div.

This is the custom JavaScript I wrote to hide it.

/* Remove Post Signatures on Pinned Pages */
var y = document.getElementById("post-signature");
if (y && isArchivePage || isSearchPage || isCommentsPage || isSeriesAndTagsPage || isAboutPage) {
    y.setAttribute("id", "post-signature-hidden");
}

/* Remove Post Signatures on Home Page posts */
if (!document.getElementById("post-body")) {
    var sigs = document.querySelectorAll("#post-signature");
    var i;
    for (i = 0; i < sigs.length; i++) {
      sigs[i].setAttribute("id", "post-signature-homepage-hidden");
    }
}

And finally, these are the custom CSS settings to hide it on the homepage and pinned pages:

#post-signature-hidden {
    max-height: 0;
    margin-top: -3em;
    visibility: hidden;
}
#post-signature-homepage-hidden {
    max-height: 0;
    margin-top: -2em;
    visibility: hidden;
}

Taken all together, the custom JavaScript finds the post-signature div, then changes its class attribute to one where I can hide it via CSS.

1 Like

Wow, you’re just making too much for my blog these last days ! Thank you for this hack, which I’ll try right away :+1:

1 Like

Thanks for the discussion, everyone. With this, I agree it makes sense to just hide the post signature on all pinned posts. So I think that’s what we’ll do. Will keep you updated on when that’s live!

2 Likes