Our customizations
Your plugin is amazing, and really well written / coded. Thanks for an excellent product.
We make some minor modifications to the plugin after reach release. This is simply due to the fact that we are a Canadian News organization and have to adjust the sharing features.
Facebook blocks our content due to the recent Bill C-19 Online News Act. As a result, we replace the Facebook share with a LinkedIn button and sharing tools. LinkedIn has been much more effective for us as an organization. I have all the javascript written out for LinkedIn already.
The general share button wasn’t working well in our testing, so I adjusted the link and added e.preventDefault() to the event and found it more consistent. (our own environment may have something to do with that)
We found a LinkedIn share button – but it was slightly different from your default share buttons, so we found a full set and replace them all to look consistent.
So my only suggestion would be to add a feature to turn on / off specific social sharing options. Then maybe allow image overrides for the share buttons so users can customize them to fit their overall site feel if necessary.
Hi Reza,
thanks for the feedback.
Are you using the 2.0 version? The preventDefault
must be something uniquely required on your site, since the Social Share general button doesn’t have an href
, so preventDefault
shouldn’t have any effect unless some other script on the site is modifying the element. Unless, of course, this is yet another broken thing Safari does even though webkit works haha.
HD Quiz 2.0 also has an action hdq_share_content
. You can use this to print any custom content you want to the share section, including adding your own social share icons and functionality.
You could use it something like:
function hdq_share_content_reza($quiz_id)
{
echo 'Your HTML HERE';
}
add_action("hdq_share_content", "hdq_share_content_reza", 10, 1);
Although not as good as actually removing it, you can also hide the facebook share with css. The classname is hdq_facebook
.
Respond to thread
You can also upload images to imgur and paste the links here. Just make sure that your images don't include any sensitive information.
Submit