Quotes

Related post with thumnail

Step 1. From your Blogger Dashboard, go to Template and click on Edit HTML.

Step 2. Click anywhere inside the code area and then press CTRL + F to open the Blogger search box.

Step 3. Type or paste this tag inside the search box and hit enter to find it: "</head>"

Select code

 

Note:

- To change the number of posts that are being displayed, modify the value (4).

- To change the number of characters to be shown in posts summary, modify the value (75).

Step 4: Now that we added the script, we will need to add the style. Paste the following code above the same "</head>" tag.

Select code

 

Note:

- Modify the values in red to adjust the width (120) and height (210) of the widget area.

- Replace #linkcolor with the hex value of your color to change the color of post titles.

- If you want to change the size of thumbnails, modify the values marked in violet (82).

- To determine the border roundness, modify the values in orange (100).

- To change the color of the post snippet, change #summarycolor with color hex value.

- In case you add more that 5 related posts, change the container height 200px to 400px.

If you have a dark background, you may want to add this style instead:

Select code

 

Step 5. Next, search (CTRL + F) for the following code snippet: "<a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if>". And after you found it, add this script just below it:

Select code

 

Step 6: Finally, find this fragment of code: "</b:includable><b:includable id='postQuickEdit' var='post'>". Just ABOVE the </b:includable> tag, add the following code:

Select code

 

Click on the Save Template button and that's it ! Enjoy !

No comments:

Post a Comment