Customizable Related Posts Widget For Blogger

We already posted a few tutorials on how to add together related posts widget amongst thumbnails inward Blogger amongst summaries or exclusively titles, which tin live compiled into a unmarried All-In-One Widget amongst powerful options. This novel customizable related posts widget for Blogger integrates all the features we've seen earlier together with more, such equally thumbnails (square or round), postal service dates, excerpts, display exclusively titles / thumbnails.

Now let's run across what this related posts blogger widget has to offer.

We already posted a few tutorials on how to add together  Customizable Related Posts Widget for Blogger

Related Posts Widget Features:

  • 9 attractive styles to fit your needs
  • Show Title, excerpt & thumbnails
  • Display unproblematic related posts amongst titles / summaries / postal service date
  • Choose whether to display the postal service thumbnails or not
  • Ability to command the thumbnail icon size
  • Option to pick out foursquare or circular thumbnails
  • Show postal service text excerpts
  • Control the length of the postal service excerpt / title
  • Determine the issue of related posts to display

Requirements:

  1. The related posts widget recognizes postal service thumbnails uploaded through Blogger itself (or Picasa Web Albums), other images from Photobucket, Flickr, or other non-Blogger hosts volition non live supported.
  2. This widget is compatible amongst the criterion desktop Blogger templates except Dynamic Views, which does non guide maintain customization.
  3. The script does non piece of work on somebody blogs, therefore your weblog / site must live opened upwards to the populace inward social club to show.

Adding Customizable Related Posts Widget inward Blogger

Log into your Blogger dashboard, become to 'Template' together with opened upwards template editor past times clicking the 'Edit HTML' push below 'Live On Blog' preview.

Next, we're going to exercise the template search feature, live certain to follow these directions exactly:

1. Place your cursor on the template code.
2. Click once.
3. Press CTRL together with F at the same fourth dimension (PC) or Command together with F (Mac).

The search box volition opened upwards inward the upper correct corner of the template editor.


Type inward the search box, therefore press ENTER. This volition convey you lot to the tag inward your template together with highlight it inward yellow.

Select together with re-create the entire CSS mode below together with glue it straight ABOVE the tag:

Next, nosotros postulate to add together the script  - search for the next line:

Once you lot institute it, click the minor arrow non beside it but amongst 1 marking inward a higher identify to expand code together with scroll downwards until you lot run across - correct below this tag, you lot should run across the employment including the "postQuickEdit" id.

See the screenshot for to a greater extent than help:


Just ABOVE the tag, add together the next script:


How to Customize the Related Posts Widget for Blogger?

To modify the 'Related Posts' text that appears inward a higher identify the widget, modify the text inward red:
relatedHeading: "

Related Posts

",

To modify the issue of posts to display, modify the '4' value from this line:
relatedPosts: 4,

Note: you lot may postulate to modify the percentages inward the CSS styles inward a higher identify inward social club to brand posts fit the related container. Just follow the values inward ruby-red together with play amongst them until you lot teach the best results.

To modify the mode of the related posts widget, modify the '4' value from:
relatedStyle: 4,

Available Related Posts Styles

  1. simple related posts widget that volition exhibit postal service titles only
  2. display postal service titles together with snippets
  3. display postal service thumbnails, titles together with snippets
  4. display related posts thumbnails, titles together with postal service appointment (shows past times default)
  5. display related posts thumbnails together with titles
  6. post titles inward front end of thumbnails, instead of having them below the thumbnail
  7. display thumbnails only
  8. small thumbnail amongst titles on the correct together with appointment below
  9. small thumbnails amongst postal service titles together with excerpts on the right

Customizing the Related Post Thumbnail Size & Style

By default, thumbnails are resized together with cropped automatically to live 300px broad past times 200px tall. If you lot desire to modify the width together with peak of the thumbnails, modify the '300' together with '200' values from:
thumbnailSize: "w300-h200-p-nu",
defaultThumb: "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg91Rv1zGMuIuvm5wa0_wmB6f2RjjE4YDgxaVC2T5t3HpaXHiHzfL-Dm6vLKP7ocbWFoo9yBLb20NpA_yMI5YtC6nN9JCpcN2lP9oHyonrOrakgBOiOigKYN_RMIwt97w9YZWxQAh_d6eV1/300-h200-c/no-thumb.png",
Note: 'w' comes from width, 'h' comes from height. To brand the thumbnails square, modify the 'h' (height) value together with teach inward equal amongst 'w' (width) value. Influenza A virus subtype H5N1 higher value volition outcome inward to a greater extent than high-res images.

If you lot desire thumbnails guide maintain rounded corners, modify 'false' amongst 'true':
roundThumbs:false,

Customizing Related Titles & Excerpts

To shorten the postal service title, modify auto amongst the issue of characters to show:
titleLength: "auto",

To cut back or add together to a greater extent than characters to the snippets, modify the "45" value:
snippetLength: 45,

If you lot desire to centre text (title together with summary), modify 'false' to 'true':
centerText:false,

To opened upwards links inward a novel tab when visitors click on a related post, modify "false" to "true":
openNewTab: false

Once you're done amongst the settings, click the 'Save Template' push together with instantly you lot tin run across the related posts widget alive on your Blogger blog.

Final words

That's it! With the novel customizable Related Posts widget for Blogger you lot volition live able to add together unique features to the related content department of your blog. However, all of these styles await together with piece of work slightly different, therefore convey your time, together with pick your favorite.