Post signatures

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

I wouldnā€™t completely rule it out for some time in the future, but as of today, we donā€™t have any solid plans to do that.

Weā€™ve just made a few updates to Post Signatures!

  • Signatures are automatically excluded from pinned posts
  • You can manually exclude the signature in a post by including this special code anywhere in your post: <!--nosig-->

Also, Post Signatures are now included in our Write.as Team plan at no additional cost (along with eBook Exports).

These changes are all live on Write.as, and youā€™ll find them in our next WriteFreely release (see PR #437).

3 Likes

Just enjoyed reading through this discussion and seeing how thing have unfolded over time :slight_smile:

This is a cool feature, and I like that signatures are excluded from pinned posts. I wanted to ask:

Are signatures ā€˜sent outā€™ subscribers & visible on emails? Or are they visible on the blog only?

Signatures are part of the post itself and get sent out in emails too.

1 Like

Okay, thanks @dino.