-
AuthorPosts
-
December 6, 2013 at 9:50 am #196937
Hi!
I just found this nice (and quite pretty) way to avoid heavy java scripts and plug-ins for social Following and Sharing. Could be a nice alternative…
http://cferdinandi.github.io/social-sharing/
Will try and get it working in Enfold in the next couple of days but I’m no programmer so if this is trivial for someone else, please let us know how to do it!
Rgds/Peter
December 6, 2013 at 9:35 pm #197114Hi peterfagerberg!
Thanks for sharing it, do you want it for Posts or Pages? you will need to change the URL parts (in the HTML) by the_permalink() function.
Regards,
JosueDecember 6, 2013 at 10:01 pm #197122Hi Josue!
I would primarily like to use it for posts and either just have linked text or maybe use the Entypo icons. Do you think you have time to give me a short instruction on how to set it up and maybe an example of how to use the the_permalink() function?
Best regards, ///Peter
December 6, 2013 at 10:22 pm #197130The HTML code would look like this:
<a target="_blank" href="https://twitter.com/intent/tweet?text=<?php the_title(); ?>&url=<?php the_permalink(); ?>&via=@username">Tweet</a> <a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>">Share on Facebook</a> <a target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?>">Plus on Google+</a> <a target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&summary=<?php avia_excerpt(50); ?>&source=<?php the_permalink(); ?>">Share on LinkedIn</a> <a target="_blank" href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&description=YOUR-DESCRIPTION&media=YOUR-IMAGE-SRC">Pin on Pinterest</a> <a target="_blank" href="https://vk.com/share.php?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&description=YOUR-DESCRIPTION&image=YOUR-IMAGE-SRC&noparse=true">Share on VK</a> <a target="_blank" href="https://www.xing-share.com/app/user?op=share;sc_p=xing-share;url=<?php the_permalink(); ?>">Share on Xing</a>
Regards,
JosueDecember 7, 2013 at 9:34 am #197263Thanx Josue! You guys have one of the best supports I’ve ever seen! Feel really safe working with Enfold and not having hard-core programming skills. Good work!
-
AuthorPosts
- The topic ‘Light-weight social sharing’ is closed to new replies.