Printfriendly

Popular Posts

Showing posts with label Blog Tips. Show all posts
Showing posts with label Blog Tips. Show all posts

How to Get Social Media buttons

I have been trying to figure out how to do this for months and I got all overwhelmed because I was confused on all of the instructions and different ways to do it.  All the codes.....I just had to slowly back away and leave it be.  Some days I suppose I feel like I catch on easier than other days if that makes any sense.  Today was the day I got it.  I hope to give you the easiest way to GET IT.  If I got it, I promise you, you can get it.

*
Download the social media icon set you want or right click and save individual ones.

*If there is a .zip file, right click on it to "unzip" it and open the folder and save it where you can easily access it.

*After you decide which icons you want to use, upload them to a site like Photo bucket to get the HTML code.

To make things easier on yourself open up 2 internet windows.

Window 1:  Blogger Draft Post mode.
Window 2: The Layout editor in Blogger for the other page.

Your draft post in Blogger will be where you'll insert your icon images and then link them to the web page you want it to go to.  It is just like putting a website link into a word and it will go to that website if you click on it, but instead it is a picture. (see below)

So now on to the trickier part:

Click on the HTML button, which is located right beside the Compose button.

1. Insert your first icon image in the HTML format.

                              

  
                                    



Repeat the steps until you have all of your desired buttons.


Highlight the image and add a link. (You might need to click the Link button twice to trigger the add link pop-up box.)



http://onecreativeprocrastinatinggal.blogspot.com/

You need to get your code to look like this (click to enlarge):

What does this all mean?

<div class="separator" style="clear: both; text-align: left;">  if your margin is on the right side.
<div class="separator" style="clear: both; text-align: right;"> if your margin is on the left side.
<div class="separator" style="clear: both; text-align: center;"> if you want your button centered.

You will delete all other codes above each HTML like that and all <div> </div>.

Only one closed </div> at the very bottom to tie it all together.

Arrows- <a href=" should be the start of each image and </a> at the end of the image to close it.

Somewhat Circles- I had one that said s200 and I just changed them all to s320 and all was fine.

Thin rectangles- you can look at the original codes in the above message and the height and width was 80, which was too big. 

*Note- you can change image sizes this way as long as it is not a direct photo bucket link image.  I was able to change this image due to it being upload in the HTML format.

http://onecreativeprocrastinatinggal.blogspot.com/


 Your icons should be flush horizontally, like this.  I found all kinds of options to make the icons go to the desired url, but they just confused me.  I figured out my own way that was much easier.  While you are still in the Compose tab, right click each image and click the Link option.  Gather all of your web page url information. 

Paste it right there in the "To what URL should this link go" box.  Repeat until of your image have the corresponding url link.
    TIP:  The easiest way to add a link to your email icon is to use the this code: mailto:youremailaddress@youremailaddress.com in the LINK field.
CREATE LINK ICON
Click on the email icon image, then click the CREATE LINK icon, and type in the above
"USE THIS CODE" text.  Don't forget to put the email address you want to be contacted at in there.

Switch back to the HTML editor and copy the entire code. They will look like the image above that I drew all over.

Now finally you get to go to your LAYOUT window. Click on your add a gadget and pull up the html option box and paste the code. Preview your work and make sure everything looks like it should before you save.

 If you ever want to center the items in your HTML gadget, enter the code <center> at the very beginning of everything in that gadget. And then </center> at the very end.

Very big thanks to a certain blog for helping me understand a little better and figure out a few more easier options on my own.

I hope this helped you get your social media buttons added and working on your blog.





How To Get Counter Buttons

  1. Go to Template > Edit HTML > Proceed
  2. Don't go any further until you back up your template.
  3. Click the Expand Widget Templates checkbox on top right of the code window.

(Click to enlarge)

Locate the code <data:post.body/> tag and paste the following code immediately above that code if you want the counters on top of your posts or immediately below for it to show up below posts.   See the search bar at the top of the image followed by Find? Enter the code in that box and it will highlight the code for you.  It can be pulled up by simply pressing "CTRL F".
Here is the code:

<!-- Scripts Start -->
 <b:if cond='data:post.isFirstPost'> 
 <!-- Facebook -->
 <div id='fb-root'/> 
 <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 = &quot;http://connect.facebook.net/en_US/all.js#xfbml=1&quot;; 
 fjs.parentNode.insertBefore(js, fjs); 
 }(document, &#39;script&#39;, &#39;facebook-jssdk&#39;)); 
 </script> 
 <!-- Google +1 -->
 <script type='text/javascript'> 
 (function() { 
 var po = document.createElement(&#39;script&#39;); po.type = &#39;text/javascript&#39;; po.async = true; 
 po.src = &#39;https://apis.google.com/js/plusone.js&#39;; 
 var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(po, s); 
 })(); 
 </script> 
 <!-- Twitter -->
 <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=&quot;//platform.twitter.com/widgets.js&quot;;fjs.parentNode.insertBefore(js,fjs);}}(document,&quot;script&quot;,&quot;twitter-wjs&quot;);</script> 
 </b:if> 
 <!-- Scripts End -->
 <!-- Horizontal social buttons Start -->
 <div class='horizontal-social-buttons' style='padding:10px 0 10px;'> 
 <!-- Twitter -->
 <div style='float:left;'> 
 <a class='twitter-share-button' data-count='horizontal' data-lang='en' data-related='' data-via='' expr:data-text='data:post.title' expr:data-url='data:post.url' href='https://twitter.com/share'>Tweet</a> 
 </div> 
 <!-- Google +1 -->
 <div style='float:left;'> 
 <g:plusone annotation='bubble' expr:href='data:post.url' size='medium'/> 
 </div> 
 <!-- Facebook Like+Send -->
 <div style='float:left;'> 
 <fb:like colorscheme='light' expr:href='data:post.url' font='' layout='button_count' send='true' show_faces='false'/> 
 </div> 
 <!-- Pinterest Start -->
 <b:if cond='data:blog.pageType == &quot;item&quot;'> 
 <div id='pin-wrapper' style='display: inline;'> 
 <a class='pin-it-button' count-layout='horizontal' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url'>Pin It</a> 
 <a href='javascript:void(run_pinmarklet())' style='margin-left:-93px; width:43px; height:20px; display:inline-block;'/> 
 </div>  
 <script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'></script> 
 <script type='text/javascript'> 
 function run_pinmarklet() { 
     var e=document.createElement(&#39;script&#39;); 
     e.setAttribute(&#39;type&#39;,&#39;text/javascript&#39;); 
     e.setAttribute(&#39;charset&#39;,&#39;UTF-8&#39;); 
     e.setAttribute(&#39;src&#39;,&#39;http://assets.pinterest.com/js/pinmarklet.js?r=&#39; + Math.random()*99999999); 
     document.body.appendChild(e); 
 } 
 </script>   
 </b:if>  
 <!-- Pinterest End -->
 </div> 
 <div style='clear: both;'/> 
 <!-- Horizontal social buttons End -->

Note: Pin It button will only appear on post pages.  it is because the button only pins from the page on which it appears.  Preview before saving.

This is what it will look like if you want it at the bottom.






Source: this posts images are my own.

How to Make a Button

Once again another code thing that took me a little bit to figure out.  I wanted to have the blog button that had the code below.  Simple and easy....just wait you will have a button made in no time.

Step 1:
Decide on the image you will be using and upload it to a photo editing program.  I used Photoscape because it is awesome and it was free.

Step 2:
Alter your image to an appropriate size that will fit on your sidebar. 

Step 3:
Upload your button to Photo bucket or some other program that creates an HTML code.  Double check your photo size before you grab the direct link code.

Step 4:
Go to: http://www.mycoolrealm.com/sandbox/gbgen/ and follow the instructions.  It doesn't save your code, just gives you an easy and effortless button experience.

Here is what it looks like:


All you do is preview and if it looks the way you want it then copy the code.

Head on over to your Layout page in Blogger; click Add a gadget; pull up the HTML option and insert your code; move it where you want it.  Preview your page before you save.

Here is my button created with the code box:

Have fun!  You won't want to miss this week.  Stay tuned for How to make social media buttons; How to get social media counters for your posts and a few other blog tips I have found that has made blogging a little more interesting.  I love it because I am always learning something new.








Copyright © Consider Me Inspired | Custom Blog Design by Lilipop Designs