How To Use Custom Image For Tweet Button

Posted by Justin Nwosu in Social Media Optimization on 04-02-2012

Tags: , , , ,

0

Adding Twitter’s Tweet button to websites is trending, as more Internet users recognize the impact of social media on our everyday lives. But then the default Tweet button might not blend well with the over-all website design. Maybe, the button’s color doesn’t match the color scheme of the website, and adding it would be a color riot. Or maybe, the shape and size don’t fit into the space you want it to be placed in. So, when you find yourself in this type of scenario, what will you do? Discarding the Tweet button is not a good idea. Managing the default button is not advisable either. So, the best thing to do is simply to modify the default Tweet code, in order to use your own image. That’s what I did and I’m happy to share the trick with you :)

Here is how I modified the Twitter code to use a custom image for Tweet button:
I know you’d want to send your Tweets through a pop-up window, instead of opening a new browser tab or window. So, I first of all wrote a JavaScript code (shown below) that will open a pop-up window. You don’t need to modify anything in the JavaScript code. Just copy and paste it in the Head section of your web page between the <head> and </head> tags.

  • <!– Begin Twitter pop-up JavaScript –>
    <script language=”javascript” type=”text/javascript”>
    <!–
    var win=null;
    function NewWindow(mypage,myname,w,h,scroll,pos){
    if(pos==”random”){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
    if(pos==”center”){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
    else if((pos!=”center” && pos!=”random”) || pos==null){LeftPosition=0;TopPosition=20}
    settings=’width=’+w+’,height=’+h+’,top=’+TopPosition+’,left=’+LeftPosition+’,scrollbars=’+scroll+’,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no’;
    win=window.open(mypage,myname,settings);}
    // –>
    </script>
    <!– End Twitter pop-up JavaScript –>

That’s it for the JS. Now let’s go to displaying our custom button on the web page. Copy the code shown below and paste it where you want your Tweet button to appear on your web page.

  • <a href=”https://twitter.com/share?url=YourDomainNameGoesHere&amp;text=TheDescriptionOfYourWebPageGoesHere” rel=”nofollow” onclick=”NewWindow(this.href,’template_window’,’500′,’400′,’yes’,'center’);return false” onfocus=”this.blur()”><img src=’YourImageURLGoesHere‘ border=”0″ title=”Share on Twitter” alt=”Share on Twitter”/></a>

Please, change YourDomainNameGoesHere to the actual URL of your web page, TheDescriptionOfYourWebPageGoesHere to the description of the page you want to Tweet and YourImageURLGoesHere to the actual URL of the image you want to use. You can optionally modify the size of the pop-up window to any size you prefer. You’ll notice that I set the size to 500px by 400px.

This code works well for websites that have static HTML web pages. You can see it in action on the website for our computer company. The only drawback is that you have to manually place the code on every web page you want the Tweet button to appear.

This code doesn’t work on WordPress or any other CMS. I’ll post the code for that soon. So, keep in touch!

Simple Steps To Create A Google+ Business Page

Posted by Justin Nwosu in Social Media Optimization on 14-01-2012

Tags: ,

0

Do you know you can take the social media promotion of your business to a whole new level by using Google+ Pages? When you take into account that the Google+ social network has garnered close to 50 million active users, you’ll understand that the platform is capable of helping you to attain a wider reach of your target audience, just like Facebook and LinkedIn. Why not consider using it to reach out to those who have interest in the type of products/services your business offers?

Google+ Create a Page

Google+ Create a Page

As follows are very simple steps you need to follow to create a Google+ business page for your company:

Google+ Add Your Information

Google+ Add Your Information

  • To get started, visit http://plus.google.com/pages/create, and just follow the Google+ wizard for page creation.
  • The first requirement is to sign in to your Google Account, or to create a new account, if you don’t have one. Once you’re through with logging in, you’ll be presented with the “Create a Google+ Page”.
  • Choose an appropriate option for your business. The available category options are Local Business or Place, Product or Brand, Company, Institution or Organization, Arts, Entertainment or Sports, and Other.
  • Add your basic information, including your desired page name, your website’s URL, your niche, and choose the age group your Google+ page content is appropriate for (like “Any Google+ user”, “18 years of age or older”, etc).
  • Agree to Google+ Pages’ terms and click on the “CREATE” button, to create your business profile on Google+ network.
  • Go ahead and customize your profile by adding things like your company logo, etc.
  • Disregard the prompt to start immediately to promote your page, since it’s still an empty page with no useful data for your target audience. You’ll agree with me that promoting a blank page to your target audience is wrong and gives a false impression of your business. So, the right course of action is to post some interesting updates with links to relevant content on your website.
  • Now is the time to start spreading the gospel about your Google+ page.

As you can see, it’s pretty easy to create a Google+ business page, and it’s in a way similar to creating a Facebook business page.