Topic-icon Can I Add Intro Text to the Sharing / Comment tool

Active Subscriptions:

None
Dear Alex,

I love JFBConnect. It's a great tool that makes my web site look awesome.

I would like to add some Intro Text to the like comment tool.

Share This Article With Your Friends

If you enjoyed this article, please take a second to comment and share it with your friends using your favorite social media listed below. Thanks in advance for your consideration.

Is there an easy way to do this? Also, there appears to be a line or two inserted after the module displays before the next item on the page leaving some white space. I'm interested in learning how to remove that so there isn't so much white space.

Thanks always for the help.

Spike
The topic has been locked.
Support Specialist
9 years 9 months ago #46349 by alzander
Spike,
Sorry for the delayed response and thanks for the praise of JFBConnect. I always love reading your requests for support :)

Right now, there isn't a setting to add an intro text before the Comment or Social Sharing buttons. I did add the idea to our to-do list though as it's a good one, and should be easy to add in the future.

For now, if you want to add something yourself, it's (relatively) pain-free. To do so, edit the /plugins/content/jfbccontent/jfbccontent.php file. Around line 166, you'll see:
$this->addTextToArticle($article, $likeText, $showLikeInViewPosition);
Update that like:
$intro = "<div class='social-intro'><strong>Share This Article With Your Friends </strong><br/>
If you enjoyed this article, please take a second to comment and share it with your friends using your favorite social media listed below. Thanks in advance for your consideration.</div>";
$likeText = $intro . $likeText; 
$this->addTextToArticle($article, $likeText, $showLikeInViewPosition);
There's similar code about 8 lines lower for the Comment box. You can update it in a very similar way.

I hope that helps, but if you have any questions, please let me know.

Thanks,
Alex
The topic has been locked.