Thanks: 0
Likes: 0
Dislikes: 0
-
Super Member
Social Media Code for Your Website
I just finished putting my website up, and it occurred to me that some of you guys might find a bit of code useful that I'm using for Google+, Twitter, and Facebook.
I put it in a little table, like you can see here on my site. Davis Auto and RV Detailing and Sales - Bozeman and Belgrade, Gallatin Valley Montana.
It's a way for people to post your site or page directly to these social media locations from the page itself.
Here's the table code to put into your html (NOTE - this has placeholders for your twitter id, website location, etc., so change those.)
<table width="150" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" valign="top"><!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="medium" data-href="http://www.YOURWEBSITE.com"></div>
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script></td>
<td width="25" valign="top"><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.YOURWEBSITE.com" data-via="TWITTERHANDLE" data-hashtags="HASHTAG">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);j s.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}} (document,"script","twitter-wjs");</script></td>
<td width="26" valign="top"><div class="fb-like" data-href="http://www.YOURWEBSITE.com" data-send="false" data-layout="button_count" data-width="120" data-show-faces="true" data-colorscheme="light" data-font="trebuchet ms"> </div></td>
<td width="26" align="left" valign="top"> </td>
</tr>
</table>
THIS GOES before your </head> tag in the code.
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Similar Threads
-
By heloguy in forum New Car Care Products
Replies: 30
Last Post: 03-19-2019, 05:11 AM
-
By Mobileautodetailing in forum Introduce Yourself
Replies: 2
Last Post: 09-28-2017, 09:00 AM
-
By LSNAutoDetailing in forum How to make money detailing cars
Replies: 10
Last Post: 08-09-2015, 06:27 PM
-
By topshelf1042 in forum Auto Detailing 101
Replies: 2
Last Post: 02-21-2013, 09:47 PM
-
By CriticalDetails in forum Off-Topic
Replies: 0
Last Post: 07-27-2012, 08:19 PM
Members who have read this thread: 0
There are no members to list at the moment.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
S |
M |
T |
W |
T |
F |
S |
31 |
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
| 1 | 2 | 3 | 4 |
|
Bookmarks