Showing posts with label Buttons. Show all posts
Showing posts with label Buttons. Show all posts

Monday, May 14, 2012

Six simple subscription buttons for Blogger

This article shows how to make a very simple row of subscription buttons, using image files that you host yourself.



Keep it simple stack of buttons
In the sidebar or header of my blogs, there is a very simple set of subscription buttons.  Visitors can use them to sign up to follow me (ie my blog's account) on Facebook, Twitter, RSS, LinkedIn, PInterest, etc.

These buttons don't fly-in, hover, shine, zoom, slide, pop out of egg-shells, sing songs or wash the dishes[tweet this]

They don't take up any more space than is absolutely necessary. They don't spend load time calculating how many followers you have.

But they work.

This article is in response to a reader, who asked how to make a similar set of sign-up buttons for himself.   It's a little longer than some similar articles, because I wanted to give enough detail so you understand what needs to be done, and why.



How to make simple subscription icons for your blog:


1 Choose which social networks you want buttons for


You need to consider which of the social networking services you want to use to promote this blog.  Some people will say "all of them", but this isn't a great idea - it can take a lot of time, and if your blog's target audience aren't using a network, then you don't need to be there either.

So, make a list of the services you want to offer a follow-option for, and make sure that you have an account there for your visitors to subscribe to. This may be a personal account or a business / group / community / entity-page, all that matters is that you know how to refer to the account you want to offer a subscription too.

Some of the common ones are:
  • Facebook
  • Twitter
  • RSS
  • Google+
  • LinkedIn
  • YouTube
  • Pinterest

Remember, these icons are for inviting your readers to follow your "social media outpost" on the other network:   for them to be useful, you need to be regularly posting on the networks you offer.


2 Get image files


The image file for each button you use needs to come from somewhere.  Some social networks provide it for you, and are happy to provide a copy each time your blog loads their subscription button.

But others don't.   For them, you need to make your own copy of the icon image-file that you need for the services you've chosen.

Google+, Feedburner and Twitter provide images, so you don't need to organise files for them yourself.

You are welcome to borrow the files shown below, which I've borrowed from elsewhere, I believe legally.   If you want to use one of these files,
  • right-click on the picture shown here, 
  • save the target somewhere 
  • upload it to the file-host of your choice (I recommend Picasa-web-albums)
  • and keep a note on the picture's URL wherever you loaded it to.



You can  also use your own image files. It doesn't matter if they are larger that mine, because the code re-sizes them. But for it to work properly, they need to be square, ie the same height and width.

Whatever icons you decided to use, you need to upload them to an image-host: I use Picasa-web-albums (ref What is Picasa?), but you may prefer a different picture-file host,

Make sure that you can find out the URL for each image.

Why this approach? Many people offering gadgets like this just let your blog link to their own copy of the images. But I don't like this - because if I ever move the file, your gadget will fail. I think you need to have and use your own copy, so I'm not responsible for your buttons working years in to the future.


3 Customize the gadget code


This has three stages.

First, get this basic code for the gadget bar.   Copy this into a text-editor (eg Notepad)
<div style="clear:both; text-align: left; float: left; padding-bottom: 10px;">
<!-- PUT THINGS IN HERE-->
</div>

Second, from the  section below, copy the code for the services that you want, and paste it into the area between the <div> start and end statements, ie where <!-- PUT THINGS IN HERE--> is in the basic gadget-bar code.

Notice that I've shown you what each block of code is for by using comments at the start and end, like this:   <!-- THIS IS THE CODE FOR FACEBOOK-->       The <!--     and -->    are the way to say "ignore what's in between here" in HTML.

<!--  THIS IS THE CODE FOR GOOGLE+ -->
<a href="https://plus.google.com/YOUR-GOOGLE-PLUS-ID?prsrc=3" style="text-decoration:none;">
<img src="https://ssl.gstatic.com/images/icons/gplus-32.png" alt="Subscribe to YOUR-BLOG-NAME on Google +" style="border:0;width:32px;height:32px; margin-left:5px; margin-right:5px;"/>
</a>
<!--  END OF  THE CODE FOR GOOGLE+ -->

<!-- THIS IS THE CODE FOR FACEBOOK--><a href="https://www.facebook.com/YOUR-FACEBOOK-NAME" imageanchor="1">
<img src="URL FOR THE FACEBOOK ICON"  alt="Follow me on Facebook" style="border:0;width:32px;height:32px; margin-left:5px; margin-right:5px;"/>
</a>
<!-- END OF THE CODE FOR FACEBOOK--> 

<!-- THIS IS THE CODE FOR YOUR RSS FEED--><a href="<b>YOUR FEED ADDRESS</b>" rel="alternate" type="application/rss+xml">
<img src="http://www.feedburner.com/fb/images/pub/feed-icon32x32.png" alt="RSS subscription icon" style="border:0;width:33px;height:33px; margin-left:5px; margin-right:5px;"/>
</a>
<!--  END OF THE CODE FOR YOUR RSS FEED-->

<!-- THIS IS THE CODE FOR TWITTER --><a href="http://www.twitter.com/YOUR-TWITTER-ACCOUNT-NAME">
<img alt="Follow  &lt;b&gt;YOUR-TWITTER-ACCOUNT-NAME&lt;/b&gt; on Twitter" src="http://twitter-badges.s3.amazonaws.com/t_logo-a.png" style="border: 0; height: 33px; margin-left: 5px; margin-right: 5px; width: 33px;" />
</a>
<!--  END OF THE CODE FOR TWITTER -->

<!-- THIS IS THE CODE FOR YOU-TUBE  --><a href=" http://www.youtube.com/user/YOUR-CHANNEL-ID">
<img src="YOUR YOU-TUBE IMAGE LOCATION" alt="Follow YOUR-CHANNEL-ID on YouTube" style="border:0;width:33px;height:33px; margin-left:5px; margin-right:5px;" />
</a>
<!-- END OF THE CODE FOR YOU-TUBE -->

<!-- THIS IS THE CODE FOR PINTEREST --> <a href="http://pinterest.com/YOUR-PINTEREST-ACCOUNT-NAME/">
<img src="http://passets-cdn.pinterest.com/images/about/buttons/big-p-button.png" style="border:0;width:33px;height:33px; margin-left:5px; margin-right:5px;"alt="Follow Me on Pinterest" />
</a>
<!-- END OF THE CODE FOR PINTEREST-->

<!-- THIS IS THE CODE FOR A LINKED-IN PERSONAL PROFILE--><a href="http://www.linkedin.com/in/YOUR-LINKEDIN-PROFILE-NAME/">
<img src="YOUR-LINKEDIN-PICTURE-URL" style="border:0;width:33px;height:33px; margin-left:5px; margin-right:5px;" alt="Follow Me on LinkedIn" />
</a>
<!--  END OF THE CODE FOR LINKED-IN-->
</div>


Third, customize this code with your own details.   For each service that you want to show a subscription button for, replace
  1. The account name that you want your readers to subscribe to
  2. Any other items in UPPER-CASE  (eg Twitter's "via" parameter)
  3. The URL for the button image (if necessary)


4 Add the gadget

  • Add a gadget to your blog in the usual way: The type of gadget to use is HTML/Javascript.
     Put the customised code that you made into the Contents field.
  • Choose whether to give it a title ("subscribe" works with techy audiences, but in other niches phrases like "follow-up" or "get free updates" are better).
  • Choose where to put it:
    If the space that you have available is too narrow, you may like to tweak the code - see below for more on this.
  • After you've saved the gadget, test all the buttons to make sure that they all work they way they should


5 Back up the gadget code


Blogger doesn't have any way for us to back up the settings inside our gadgets.

And it's very easy to either accidentally delete the whole gadget, or lose the code becasue you try to change it and make an error:  if the HTML-gadget editor sees an error in your code, it doesn't tell you about the problem, it just deletes the code that it does not understand.

Because of this, I very strongly recommend that you keep a backup copy of the code

Some people use a text file for this. Personally, I usually keep it in a post in the private documentation blog that I keep for each of my main blogs.   Either way, it's important to keep it up to date as you do "tweaks".


Job done:   You should now have a working set of simple-subscription-buttons on your blog.   But you do still have some options for tweaking the button size and position, as explained below.


Adjusting the button sizing and spaces


Depending on the width of your sidebar, and the margins inside any button-pictures that you use, you may want to tweak the code a little.   This is easy enough to do.    Notice the structure of each piece of button code:
<!-- THIS IS THE CODE FOR A WHATEVER -->
<a href="THE URL TO SUBSCRIBE TO">
<img src="THE IMAGE LOCATION"
style="border:0;width:33px;height:33px; margin-left:5px; margin-right:5px;"
alt="Follow Me on LinkedIn" />
</a>
<!--  END OF THE CODE FOR WHATEVER-IN-->

I've put a few line breaks in, so you can see that there is
  1. Opening comment
  2. A href statement = the address of what is being subscribed to
  3. The image address, 
  4. Style commands for the image
  5. alt-text (the latter is read out to visually-impaired people)

To change the size or position of the icon, or the space between then, just change the values in the Style commands, ie inside   style="border:0;width:33px; height:33px; margin-left:5px; margin-right:5px;

Make sure that you don't accidentally remove either of:
  • The semi-colon character ( ; ) which needs to be at the end of each statement
  • The full-colon character (  :  )  which is in between the name of the thing you are changing and the value.     



Adding more social networks


To add new services to this, you just need to follow the same process, ie
  1. Make an account to follow
  2. Get an icon-shaped (ie square) image to represent it
  3. Add a block to the code, with the "follow-me" code from the relevant service in it.
  4. Post regularly to the account you made  (or else there's no point in asking people to follow you there.


Are there any other social networks or subscription options that you'd like me to add to the list above? Let me know, and I'll see if I can figure out the code for you.




Related Articles:


Linking your blog to the social networks

Getting started with SEO for Blogger-users

An introduction to Picasa and Picasa-web-albums

File-hosting options

Adding a Follow-me-on-Twitter button
Read more > Six simple subscription buttons for Blogger

Tuesday, October 19, 2010

Creating a button that links to your blog

This article is about how to make a button for your blog that other people can put on their blog or website.


Why is this needed?


Occasionally, someone may ask you to give them a "button" for you blog that they can put onto their own blog or website, instead of just using a boring linked-list or Blogroll entry.

Really, a button is just a picture and some HTML code that says "show this picture, and when someone clicks on it, go to this website".

If they need to ask you for this (as opposed to just asking your permission to use your logo), they probably don't have the skills to make the code and/or picture themselves.   So if you want to be helpful, and if you're interested in having them help to promote your blog  (and you probably are interested), you will need to do most of the work.


How to make a button for your blog:


1 Make or choose a picture to be your button.  

This could be your icon or title-image, if you have one, or any other image file that you own or that is not copyright to someone else. 

Make sure that it's saved as a fairly small size file, but still looks good on screen.   If you want to be particularly helpful, you could ask the other person what size of button they would like, and make you picture the same size.

You could use the Blogger icon as your button but:
  • It may not be the image your want to represent you, and 
  • The other person may be breaking Google's rules if you do - check the current roles at Google Permissions

2 Upload your picture to an image hosting service

Blogger stores photos in Picasa web albums, but you can use any file-hosting service.  Ideally it should be somewhere that will exist for as long as your blog exists.

If you are using Picasa-web-albums, make sure that the security of the folder where you've put it is either "Public on the web" or "Anyone with the link" - not "Private"

Make a note of the URL of the picture (not the album) after you've uploaded it.


3 The code to use is like this:

<a href="THE URL OF YOUR BLOG" imageanchor="1" >
<img border="0" src="THE URL OF YOUR IMAGE"  alt="Link to YOUR BLOG TITLE"/>
</a>

Or, if you would like the other website to stay open and your blog to open in a new tab or window:
<a href="THE URL OF YOUR BLOG" target="_blank" imageanchor="1" >
<img border="0" src="THE URL OF YOUR IMAGE"  alt="Link to YOUR BLOG TITLE"/>
</a>

To make this code work for your blog, you need to change:
  • THE URL OF YOUR BLOG
  • THE URL OF YOUR IMAGE
  • YOUR BLOG TITLE

to the correct values for your blog.


Installing your button


The method for installing your button on the other person's website depends on what tool they are using.  

If they are using Blogger, they have several options for installing third-party HTML (which is what you have made for them).

If they are using some other tool, they may need to consult the manual, or help forum, for that tool.


A warning about copyright


Copyright law applies to blogs, just like it applies to all created things.

If you make yourself a logo, then you own the copyright of that logo.   But if you make a copy of it available to someone else, then legally you may be implying that they are welcome to use it - details of this depend on the law in your country, and perhaps the laws in the country where you file-host is, and where Google is located too.

Notice that the method I have suggested gives you control over the image file that you've provided:  if you want to change the image later on, you can provided that the replacement gets exactly the same file location as the original file had.   (Google Sites file-stores currently do work this way, provided replacement files are makde by by uploading a file with the same name as the original had.)

If you use someone else's imagine as your button, make sure that either you have the owner's permission to use the picture, or that it is in the "public domain".



Related Articles:




Finding a picture's URL in Picasa-web-albums

File-hosting services

Putting 3rd party HTML into your blog

Copyright, blogs and bloggers

Linking your blog to the Social Networks.
Read more > Creating a button that links to your blog
 
 
Copyright © blog
Blogger Theme by Blogger Designed and Optimized by Tipseo