{"id":231,"date":"2013-03-01T14:01:43","date_gmt":"2013-03-01T14:01:43","guid":{"rendered":"http:\/\/blog.law.gmu.edu\/webservices\/?p=231"},"modified":"2013-03-01T14:01:43","modified_gmt":"2013-03-01T14:01:43","slug":"roll-your-own-social-media-buttons","status":"publish","type":"post","link":"https:\/\/sls.gmu.edu\/web\/2013\/03\/01\/roll-your-own-social-media-buttons\/","title":{"rendered":"Roll Your Own Social Media Buttons"},"content":{"rendered":"<p>I recently tested out several WordPress&#8217;s social media share plug-ins and disappointed with unnecessary injections of JavaScripts and CSS. Some services even use their own site as a gateway to server up the social media services. I was frustrated and ended up rolling my own, thanks to this <a href=\"https:\/\/www.geekinheels.com\/2012\/08\/28\/how-to-manually-add-social-media-buttons-to-the-bottom-of-each-wordpress-post.html\">blog post<\/a>. Here&#8217;s my customized codes:<\/p>\n<p><code>&lt;a href=\"https:\/\/www.facebook.com\/sharer.php?u=&lt;?php the_permalink();?&gt;&amp;t=&lt;?php the_title(); ?&gt;\" target=\"_blank\"&gt;&lt;img src=\"facebook.png\" alt=\"Share on Facebook\"&gt;&lt;\/a&gt;<\/code><\/p>\n<p>&lt;a href=&#8221;https:\/\/plusone.google.com\/_\/+1\/confirm?hl=en-US&amp;url=&lt;?php the_permalink() ?&gt;&#8221; target=&#8221;_blank&#8221;&gt;&lt;img src=&#8221;google-plus.png&#8221; alt=&#8221;Share on Google+&#8221;&gt;&lt;\/a&gt;<\/p>\n<p>&lt;a href=&#8221;https:\/\/twitter.com\/share?text=&lt;?php the_title(); ?&gt; -&amp;url=&lt;?php the_permalink() ?&gt;&#8221; target=&#8221;_blank&#8221;&gt;&lt;img src=&#8221;twitter.png&#8221; alt=&#8221;Share on Twitter&#8221;&gt;&lt;\/a&gt;<\/p>\n<p>&lt;a href=&#8221;https:\/\/www.linkedin.com\/shareArticle?mini=true&amp;url=&lt;?php the_permalink() ?&gt;&#8221; target=&#8221;_blank&#8221;&gt;&lt;img src=&#8221;linkedin.png&#8221; alt=&#8221;Share on LinkedIn&#8221;&gt;&lt;\/a&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently tested out several WordPress&#8217;s social media share plug-ins and disappointed with unnecessary injections of JavaScripts and CSS. Some services even use their own site as a gateway to server up the social media services. I was frustrated and ended up rolling my own, thanks to this blog post. Here&#8217;s my customized codes: &lt;a &hellip; <a href=\"https:\/\/sls.gmu.edu\/web\/2013\/03\/01\/roll-your-own-social-media-buttons\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Roll Your Own Social Media Buttons&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[31],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-social-media"],"_links":{"self":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":0,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"wp:attachment":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}