We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question

Sharing individual blog posts by social media plugin


I've installed and have running a social media share panel on by blog as follows:


Each of the list items for each social media channel is as follows but how would I go about making the link share the perch specific blog post? I'm not sure what I need to do to the <a> element.

Help appreciated.



<li class="rrssb-twitter">
    <!-- Replace href with your Meta and URL information  -->

    <a href="http://twitter.com/home?status=Ridiculously%20Responsive%20Social%20Sharing%20Buttons%20by%20@joshuatuscan%20and%20@dbox%20http://kurtnoble.com/labs/rrssb" class="popup">
        <span class="rrssb-icon">
            <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
                 width="28px" height="28px" viewBox="0 0 28 28" enable-background="new 0 0 28 28" xml:space="preserve">
            <path d="M24.253,8.756C24.689,17.08,18.297,24.182,9.97,24.62c-3.122,0.162-6.219-0.646-8.861-2.32
        <span class="rrssb-text">twitter</span>
Rob Hawkins

Rob Hawkins 0 points

  • 5 years ago

look forward to hearing from you

Drew McLellan

Drew McLellan 2638 points
Perch Support

What does the documentation for the sharing widget say?

To be honest Drew I have looked at that but am confused as how I pass the Perch generated URL to it for example:


I have checked the docs for the widget but can only see how I would pass a static link not a dynamic one to it...

Driven me mad for a fair while today this has so really appreciate the help. I'm nearly done after this I promise!!


Many thanks


Should mention that it seems to be a different string for the Twitter and Facebook links also and not sure why or if this makes a difference.

I can use the decoder mentioned in the instructions to turn a link to this:


but then if I use this in the code it will always go here and not the the specific pages being viewed by my guests.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Right - so how would you pass the static link? Then we can make it dynamic - that's the Perch bit.

Well I think for Twitter it's now this in the example link:

<a href="http://twitter.com/home?status=Ridiculously%20Responsive%20Social%20Sharing%20Buttons%20by%20@joshuatuscan%20and%20@dbox%20http://kurtnoble.com/labs/rrssb" class="popup">

and I think I would change it to this:

<a href="http://twitter.com/home?status=Myinfo%20goes%20here%20http://colconquerors.com/blog" class="popup">

but am then not sure how to add the bit that would make it dynamic for each blog post

Hi Drew,

This seems to do it :-)

<a class="popup" href="http://twitter.com/home?status=<perch:blog id="postTitle" />:-%20http://www.colconquerors.com<perch:blog id="postURL" />">

Look good to you?



Drew McLellan

Drew McLellan 2638 points
Perch Support

Sure, looks fine.

You might want to add urlencode="true" to the tags to make them URL-safe.

Hi Drew,

Thanks for the advice. Would this be as follow?

<a class="popup" urlencode="true" href="http://twitter.com/home?status=<perch:blog id="postTitle" />:-%20http://www.colconquerors.com<perch:blog id="postURL" />">

got it...

 <perch:content id="title" type="text" label="Title" urlencode="true" />