How to centre-align the sharing-icons from AddThis in Blogger
This article shows how to get and then centre-align the row of sharing items that you can get from AddThis (and it's likely that a similar technique applies to sharing buttons from other services like ShareThis, too).



If you think that Blogger's own social sharing buttons a just a bit too small and difficult position, then you may decide to use a service like AddThis to generate buttons that are more elegant all round.

Signing up with AddThis is easy: just log in to your Blogger account, and in a separate tab open up AddThis.com. Choose Create Account, and then Continue with Google. This links your Google account and your AddThis account, and is the easiest approach - but there are other options too, like creating your account with your Facebook or Twitter accounts, or even just signing up the old fashioned way with your email address.

Once you have signed up and chosen a plan (personally I just the free "Basic" plan), you need to actually install the AddThis buttons on your site. To do this:
  • Select one or more sets of sharing buttons (from the options available to your account type),
  • Choose the settings which apply to that set of buttons
  • Choose Activate (button in the bottom right corner of the setting screen), and
  • Install the code that AddThis gave you into your blog.

Installing the code that AddThis gave you is pretty much like installing any other piece of code.   Typically the code you have to install has two parts:

For the piece that says:
Step 1: Add the following code to the <body> of your website.
Search for "<body"  (note:  no closing angle-bracket because some templates have extra instructions in there), and then put the code from AddThis after the angle bracket that goes with the <body


For the piece that says:
Step 2: Paste this code into whichever page you would like this tool to show up.
Find the location in your template that you would like the gadget (eg an HTM gadget, or inside the post statement itself - read more about the options), and copy and paste the relevant code from AddThis.




But it's not in the right place.

If you install the code as is from AddThis, you will find that the row of sharing buttons is pretty tightly linked up with the rest of the page, and left-aligned.   Fortunately this is easy to change.


How to centre (or right align) rows of buttons from AddThis 

To put the set of sharing buttons from AddThis at the middle of the page, you need to surround the 2nd piece of code from AddThis with another Div statement, like the one in bold below:
<div style = 'width:100%; text-align: center; margin-bottom:3em; margin-top:2em;'><!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_sharing_toolbox"></div>
</div>
The exact details to use depend on how exactly you want to set up your sharing-bar form AddThis.  I wanted it to be centre-aligned on one of my sites, with some extra white space above and below, so I used these commands:

  • width:100%  -  says to use all of the page-width in deciding where to put the sharing bar  (by detfault, it would just use the width of the sharing bar itself
  • text-align: centre   -   means that he bar will be put in the middle
  • margin-bottom and margin-top   put some extra space above and below the gadget, so it sticks out more-so.


But you may use a different approach, depending on what your blog is trying to achieve.

What your readers see

Visitors using a web-browsers

Will see your AddThis buttons, as you defined them

Readers who subscribe to your blog's RSS feed

Will not see your blog's AddThis sharing buttons, unless they happen to click through from their feed-reader to your blog.

Readers who follow-by-email 

Will not see your standard social sharing buttons at all, unless they visit your site.   (AddThis does have some email newsletter buttons, but these don't automatically go into emails generated from Blogger).


Is it worth it?

For what it's worth, I recently made the change from custom sharing buttons that I'd made myself to classier looking ones from AddThis, and saw quite a jump (50% or more) in the number of social shares, across all my sites.

YMMY, of course.



Related Articles

Installing 3rd party code into Blogger

Using Div statements to control layout

Featureso Tuesday, 29 September 2015
How to put pictures into unusual shapes, using PowerPoint
This article explains how to put a picture that is one shape (a "square peg") inside an image of another shape (a "round hole" - or star, elipse, octagon, etc) - using Microsoft PowerPoint.

Original title:   How to put a square peg into a round hole - in pictures


Wooden clothes peg in a customized rectangle with rounded corners.
Recently, I've been using PowerPoint to make the thumbnail image for my posts. This means that I own the copyright of the pictures, so can share them without worrying about copyright issues.

One approach I've used is to find an interesting copyright-free picture that is related to the theme of the post, and then put it inside a shape that adds some visual interest or has some words along side it.  Another thing that I'm going to try is using multiple pictures in this way to make a more-interesting-than-usual collage.



How to put a picture inside a shape

NB PowerPoint commands are based on Office 2007 and 2010 - but the same principles most-likely apply in other versions where the commands may be slightly different.


1   Get your image file, and save it somewhere on your computer.

A wide range of picture-file formats are supported by PowerPoint:  in the 2007 version this includes as shown in this list:

2     In PowerPoint, make a blank side (Home > Layout > Blank)

3     Then add a shape (Insert > Shapes, click on the shape you want)



Intially, the shape with have the fill-colour and border that are the current default values. But you can change this, which is what we are going to do.


4    Right-click on the shape, and choose Format Shape from the pop-up menu




5    In the Fill tab, choose Picture or Texture Fill, then click the File button and navigate to the image file you got in step 1, and click OK.






6   Make sure that the portion of the picture that you want to show is in the picture:  to start with the shape is centered on the middle of the picture.

Change this using the Offsets to move the shape to the left or right over the image.   You can make the offsets positive or negative as shown.

You can monitor the results of different settings in PowerPoints slide thumbnails (on the left hand side, if you have it showing), or by dragging the pop-up menu to a different place in the screen so that you can see the shape itself.




Job Done - at this point, you have an image that is cropped to the shape that you chose - now you just have to put it into your blog.



Using the picture


There are (at least) three ways to get the shape-cropped-picture from PowerPoint into your blog.

I usually copy the item from PowerPoint, and then paste it into a picture editor (Paintbrush etc), manually.   This is an old-fashioned approacb - but it lets me adjust the size and position of the image, and save it (usually a .png) with a file-name that describes the image really well which is good for mating the blog come up in search results (SEO).   The this picture can be inserted into a post just like any other picture.

Another option is to choose File > Save As from Powerpoint, and choose to save the slides in an image format, eg JPEG which can also be inserted into a post in the usual way.  You are likely to be asked whether to put all the slides in one image, or to make one image per slide. Usually, it would be best to make one image per slide - but I don't use this method because the image that is created is the size of the whole slide, rather than just the pictures on it.

A third option is to display the PowerPoint file as a slideshow. This isn't something that I'd do for only one shaped image, but may be relevant in some situations.


Adjusting the size and quality of the picture


One thing that you don't have any control of inside PowerPoint is the zoom level of the inserted picture.

If you make the shape larger, it doesn't show a larger proportion of the picture. Instead, it just shows the existing picture in a larger size, as you can see in the slides shown here.

I suspect that if you want to zoom in to a particular area of the image file, the only approach is to edit the picture in another tool, crop out the bit that you do not want to show, and only keep the part that you want to include inside your shape.

However PowerPoint does have some limited control over the contrast and brightness of the picture, from the Picture tab of the Format Shape window.


Can you do this in other tools?  Why PowerPoint?


Yes, you can.

Photoshop, and similar commercial tools almost certainly have features like this, and I'm certain that GIMP (like a public-domain, less powerful version of Photoshop) and Inkscape (another public-domain image program which is more focussed on scalable-vector-graphics and objects than on pixels) also have these features.

So why use PowerPoint?   In short, its (relatively) cheap and many people have access to it already.   It's also very easy to learn, compared to the other packages, and what you learn is likely to apply to lots of tasks and not just in making pictures for your blog.




Related Articles:



Putting a picture into a blog-post

Post.thumbnail and post.summary - ways of describing blog posts

Showing a PowerPoint slideshow in Blogger

Copyright, blogs and Blogger/Google

Featureso Tuesday, 8 September 2015
How to find the URL for a picture in Google Photos
This article describes how to get the URL or internet address of a picture in Google Photos, and the difference between Google's shareable links and URLs.



Google Photos is a tool that help bloggers (and everyone else) to manage their picture collections. It replaces Google+ Photos, and works alongside Picasa-web-albums.   You can read more about it here.

In Google Photos, there are two different types of web-address for a photo.
  • One is the URL, and this can be used to refer to pictures from Blogger, or from other tools that want a link that just shows the photo, eg Twitter, Google Maps.  This is the traditional style of internet-address for a photo.
  • The other is the shareable link.   This is what Google Photos provides from the Share function.   Shareable links can be used in Facebook, and other places where the photo that is being shared is displayed within a web-display, rather than just as a picture.   (Ref:  How to make and manage shareable links in Google Photos.)

Unfortunately shareable links cannot be used in many applications.  This is because they don't just show the picture.   Instead they load a display showing the picture-date, the name and picture of the person who is logged in to Google at the time, and any other pictures that you have included in the same shareable link.

If you want to use an image from Google Photos in a tool which cannot use shareable links, you need to find it's URL, instead.   At the moment, Google Photos doesn't have a way to get this - but luckily it's easy enough to find.


How to get the URL or web-address of a photo in Google Photos, using your computer

Log in to Google Photos

Navigate to the picture that you want to get the link for.  

Click on the picture, so you see it in full screen mode.




Right click on the body of the photo and choose the "copy link" command from the menu that pops up where you clicked.  

The exact wording of this command varies between browsers on operating system.   For example in Chrome / Windows 8, it is simply "Copy Image URL"




In Internet Explorer 11 / Windows 8, you need to choose Properties from the pop-up menu, and then copy the value from the URL-field in the window that opens





Job done! The URL for the photo which you were looking at is now in your computer's memory, and you can paste it (with ctrl/v or Edit > Paste) into any other place that wants it - for example Blogger's photo-insert wizard, or an email message or discussion forum or chat window.


The URL from your address bar doesn't work

You may be tempted to just copy and paste the URL from the address-bar in your browser. And this will work for you.

But if someone else (or you, when you are not logged in to the same Google account) tries to use it, they will get either:
  • A 404 error (if you are logged in to a different Google account), or
  • Invited to log in to your Google account - followed by a 404 error if the Google account you log in to is not the one that owns the picture.



How to get the URL or web-address of a photo in Google Photos, using your phone (Android or iOS)

Unfortunately I have not managed to find a way to get photogrpah URL (rather than the shareable link) from my smartphone as yet.

If you can suggest any ways to do this, please leave a comment below.




Where to find more information

Introducing Google Photos:  how does it compare to Google Plus Photos and Picasa-web-albums

How to change the date of a picture in Google Photos

How to get the shareable link for one or more pictures in Google Photos

Putting pictures and text side-by-side in blog-posts

Featureso Monday, 20 July 2015
How to share pictures from Google Photos, using shareable-links
This article describes how to get a link to one ore more photos from your Google Photos collection, using the Shareable Link controls.   It also explains how to delete shareable links that you have made in the past



Google Photos is a tool for managing picture collections. It replaces Google+ Photos, and works alongside Picasa-web-albums.   You can read more about it here.

Shareable Links are a new type of linking introduced in Google Photos, which let you easily share one or more pictures at the same time.   You can email them, or use them in tools like Facebook.

When someone opens a shareable link, they see a display with the date, the name and picture of the person who is logged in to Google at the time, and all the pictures that are included in the same shareable link.

If you want to use an image from Google Photos in a tool which cannot use shareable links, you need to find the URL for the photo, instead.


How to get the shareable link for one photo in Google Photos


Log in to Google Photos

Navigate to the picture that you want to get the link for.  

Click on the picture, so you see it in full screen mode.

Hover your mouse towards the top-right of the screen, and you will see some control show up: these are quite small, and are white (so may be harder to see against some backgrounds).

One of the controls is the Share icon:  it looks like a side-ways triangle with one bar missing.     Click it.




In the Share pop-up that opens, click "Get shareable link"




Wait while Photos generates a link.

When it is finished, copy the link text.  
(Ctrl/c on the keyboard is the easiest way to do this, since the text is automatically selected).




Job done! The display address for the photo which you were looking at is in your computer's memory, and you can paste it (with ctrl/v or Edit > Paste) into any other place that wants it (eg Facebook, in an email message, or something that will accept an address which displays the photo inside a "wrapper" of some sort.  s photo-insert wizard, or an email message or discussion forum or chat window).


How to get the shareable link for more than one picture


You can share several (or lots) of photos with someone by just giving them one web-address, which opens up a screen with all the photos.

 To do this:

Click the small selection icon (tick) at the top left hand side of each picture that you want to include.
(Once a photo is selected, the icon shows as blue, and there is a border around the picture).





Hover your mouse towards the top-right of the screen, and you will see some control show up: these are quite small, and are white (so may be harder to see against some backgrounds).




Click the Share control icon:  it is the one that the arrow is pointing to in the picture just above this.

Continue in the same way as for getting a shareable link to an individual photo (ie the section above)



What does the Delete link do

You may have noticed that there is a delete function on the Shareable link screen.


If you click it, then you are given the chance to delete any existing links to the currently selected group of photos.


This doesn't seem to make any sense at the time when you are first making the link.

But it also works later on:  if you have the same photos selected and choose to get the shareable link again, you will get the same link - and you may delete it instead.

This does not delete the photos themselves, just the previous link to the currently-selected group of photos.   If anyone (or anything, eg Facebook) tries to use that link again, they will get an error message instead.

Another way to delete links is from the left-side menu in Photos:  Choosing  More > Shared links shows you al list of all shareable links you have ever made, and then for each one you can either copy the link or delete it.





Where to find more information

Introduction to Google Photos

How to put a picture into a post in Blogger

Featureso Saturday, 18 July 2015
How to tell Google about problems with activity on your AdSense account
This article describes a way to tell Google about problems with activity on your AdSense account.



I noticed a link to an Invalid Clicks Contact form in a recent blog-post from Google.

You can find the form here.

Basically, this is a way to tell Google if you think that something has gone wrong with your AdSense account, for example if you are being click-bombed or similarly targeted by malicious people or activity.

This caught my attention because exactly that happened recently here on Blogger-hints-and-tops: from reading the AdSense help forums, it seems that bots (or something) were attacking Link Units, and suddenly lots of people were getting huge increases in both click-through rates and revenue-per-click. At the time, I followed the advice given there:

But it still felt wrong not to take a more active step to tell Google about the specific problem with my account..


What does the form do

The Invalid Clicks report form has fields that let you give
  • Your name, email address and AdSense publisher ID
  • The URL where ad code appears
  • Topic (select one of: reporting unusual activity, or predicting a significant change in account activity)
  • A paragraph describing what led you to believe that the click activity was invalid
"Data from your site, mobile app and/or YouTube channel traffic logs or reports that indicate suspicious IP addresses, referrers or requests which could explain invalid activity." 
 Note that you only have 1000 characters for the description - but I'm sure that links to documents in your Google Drive (set to be avaialble to anyone with the link, of course) would be very acceptable.

They do say "Please note that we may not respond to your message unless we find a significant issue with your account." - and I would not be in the least surprised to not hear anything back.



Mention expected traffic increases, too

Sometimes, you may know that your blog is likely to get a a large traffic increase. For example, you may publish a controversial post, or release a resource which is extensively publicised via social media or your email list.

You can also use this form to tell Google AdSense about this, and that you expect a sudden increase in page impressions and revenue.

There are no guarantees, of course, but this may help them to distinguish between genuine and invalid sudden changesincreases, in cases where these are manually reviewed.


When not to use the form

Google know that even the most careful publisher will occasionally click on an ad themselves, especially on sites which are about personal hobbies or interests.

My guess is that we should not waste time reporting these invidiual clicks. They are very easy for Google to identify and disqualify - and doing to would make it a lot harder form them to identify real problems vs noise from issues reported via the form.




Where to get more information

How to approve a site to show AdSense ads from your account

AdSense help forum

Stop your AdSense from showing types of ads that aren't allowed on Blogger

Featureso Tuesday, 7 July 2015
Using a custom domain for something other than your Blogger blog
This article is about how you can use a custom domain that was purchased through Google / Blogger for something other than a Blogger blog.




Blogger makes it very easy for you to buy a "custom" domain name (ie URL) for your blog.   Instead of being www.fred-fish.blogspot.com, you can easily be www.fred-fish.com - which is more appealing for all sorts of reasons.

Blogger tells you which domain registrar they're going to use and lets you change to the other one if you want to.  Apart from this, Google hides most of the "technical" domain registration details from you:  you are invited to set up a domain administrator account (in Google Apps), but even this is optional.  

But there may come a time when you want to use your domain for more than just a blog:  eg, Fred may want to use www.fred-fish.com to sell fishing trips or as the public gateway to a massive database of fishing achievements, neither of which are functions that Blogger (easily) provides.

To use a Google-Blogger purchased domain for something other than a Blogspot blig, you need to:
  • Move your blog away from the domain
    (you might move it use a subdomain or virtual host off the domain later on - but the first step is just to free up the domain for other use.
  • Change the domain-name-server settings for the domain to point to the right place for the "something else" that you want to use it for.

Even though you purchased the domain using Blogger, your access to it is through the Google Apps control panel: from there you get the login details for the domain registrar (currently either goDaddy or eNom that Google used to buy the domain).


How to re-use your domain

Unlink the domain from your blog:

1  Log in to Blogger with the account that owns the domain.

2  From the Dashboard, choose   Settings > Basic > Publishing and click the cross on the right of the Edit link beside your blog name.





This changes your blog back to www.YOUR-BLOG-NAME.blogspot.com, and removes the DNS records that pointed your blog to your custom-URL.

It may take a few hours (I've heard 72) for these changes to apply to computers all around the world, so people who go to your custom domain may still get re-directed to your blog for a day or two.

Also, Google (and other search engines) will still have indexed links to your blog contents at your custom domain.  These will gradually be replaced when
  • you put new content at your custom domain and 
  • it gets indexed by the search engines and 
  • the new content-indexing replaces data in the cached Google results in various computers around the world.
This can take some weeks, though, so your blog may miss out one some search traffic, and people who search for your new site may see odd results in their search list.


Next - link the domain to what you want it to show

3  Find, or create, the domain administrator login details for your domain:

I've previously described how to set up the domain administrator for your domain.
  • If you haven't done this already, you need to find the relevant email and set up the account now.   
  • If you have done it, you need to remember the administrator login and password that you created.
  • If you cannot remember the administrator details, then go to  https://www.google.com/a/cpanel/YOUR-DOMAIN-NAME/ForgotAdminAccountInfo - put in the right value for your domain name, without www.  or http:// at the start.    Enter the captcha details, and if you have set up an administrator account the details will be emailed to your backup secondary address. 
  • If you never created an administrator account and cannot find the email to do it now, use this help-process.  Choose:
    - I never created an administrator account, then
    - I signed up at Google.com/a and purchased a domain name at the same time

    You can only use the help-process after you have un-linked your blog from the domain (ie steps 1-2 above plus left time for the change to be applied to Google's servers - somewhere between a few minutes and a few hours seems to work).  If you try to use it while your blog is still using the domain, you end up being directed back to Blogger.
Note:   if none of these processes help you get control of your domain administrator, check the resources in this article from Nitecruzr about the topic.
    4  Go to https://www.google.com/a/YOUR-DOMAIN-NAME/

    5  Log in with the admin account and password from Step 3.

    6  Go to the Domain Settings tab

    7  Go to the Domain Names sub-tab

    8  Choose the Advanced DNS settings link.

    This opens a screen that shows you how to get into the DNS console for your domain.   It typically has
    • Your domain-registrar sign-in name and password,  
    • Your domain-registrar customer service PIN - in case you need to contact the registrar's customer services, 
    • Contact details for the domain registrar's customer service department  
    • A link that you can use to get to the to DNS console
    9  Log in to the DNS Console, using the details from step 9.

    10  Follow the directions there to make the domain changes.

    The steps required depend totally on what you are using the domain for:  for help with this, contact the the technical support forum (or whatever) for the product that's being used to build the new contents of your domain.


    If you need more help, check out the Google Apps help forum.



    Where to find more information

    Automatically renewing your custom domain

    Transferring ownership of your blog to another Google account

    Blogger and other Google products - an overview

    Recovering control of your custom domain (external link)

    Featureso Sunday, 5 July 2015
    How to change the date of a photograph in Google Photos
    This article shows how to change the date associated with a picture in Google Photos.



    Update- August 2015

    There is now a feature to change the date of individual pictures or videos in Google Photos.

    To use it:

    • Navigate to the picture / video you want to set a new date for
    • Click the "information" icon (small "i" currently near the top-right of the photo viewer screen)
    • In the right hand panel, hover your mouse over the item in Details which has a picture of a calendar beside it.
    • Click on the pen icon which appears while you are hovering
    • Enter the new year, month, date and/or time (in 24-hour clock) for your photo or video.
    • Click Save.
    Job Done!   You have now changed the date stored with your image or video.





    There are still some photos that you cannot see through Google Photos (eg ones uploaded directly through Blogger with some settings, or shared in Google Hangouts).   For these you need to use the date-editing features in Picasa-web-albums, which are described below.


    Original Article

    When you open Google Photos by default you see the All Photos tab, which shows every picture in your Google account, sorted by the date on which the picture was taken, with the newest at the top.

    This works well for recent photos that were taken with smartphones, and so most likely have the correct date-time attached to them.

    But for older photos, that were added to Google in bulk when you finally uploaded them from your camera's memory card, the attached date may not be right.

    It's even possible to have some photos with no date attached to them - and it looks like Google Photos, very confusingly, shows a nominal date figure in 2075 for these.

    One way to avoid the confusion caused by these wrong dates is just to use the Collections tab to view your pictures, and to put photos with the wrong dates into appropriate collections (aka albums) yourself.

    But if you want to keep using the All Photos view, you may want to alter the date for some of your  individual photographs, so they show up in the right order.


    How to change the date for a picture in Google Photos

    Unfortunately Google Photos doesn't have a feature for doign this (yet).   But you can adjust the date assocaited with with a picture by using Picasa Web Albums - provided you have at least some aspects of a Google+ profile (eg a Google+ Page) associated with your Google account.

    Follow these steps:

    Go to Picasa Web Albums, using the no-re-direct link: https://picasaweb.google.com/lh/myphotos?noredirect=1

    Find the album that the photo(s) you want to change are in

    Click on the album - this will open the album, and display each picture in it.

    Click on the photo you whose date you want to change.

    From the menu bar, choose Actions > Edit on Google+.   This opens the photo in Google+'s photo viewer mode.


    Click on the drop-down beside Photo Details in the right hand information bar.



    Use the options in the pop-up window to choose the correct date, time and even time-zone.



    Click Save


    Job Done! If you now look at the picture in Google Photos, you will see if with your newly changed date associated with it.


    What if you don't have Google+

    If Edit in Google+ is greyed out and cannot be selected, then this means you do not have Google+ associated with your Google account.

     The only work-around for this currently is to share the photo (from Google Photos) with another Google account that does have Google+, and use that to change the date.




    Where to get more information


    Introducing Google Photos - another tool for managing your photo collection.

    Understanding Picasa desktop vs Picasa-web-albums

    All about Google accounts

    Featureso Friday, 5 June 2015