In previous article we told how to add related post with thumbnail widget in blogger blog now we will tell you how to customize its title,number of shown related posts and more.
Setting number of related posts
See this line var maxresults=5; in code and change the number according to your choice.
Changing the default thumbnail picture
See this line var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8hw_3_4Tu4PM0FcO9pj38bymUrxzF4Tu4D_2gUnwJAgeeBo9c4EzAu3WflSr6tJW1jef_xLLKH8QN6xeF3S0YdEGM3qOG_bEOF2wWVkTQndkdK-RvLgy2uMro8ZAuNcW4NKDyTX9u8GI/s400/noimage.png";in the code and here you can change the picture url
Changing the Widget title
To change the title find this line var relatedpoststitle="Related Posts"; and replace the default title
0 comments:
Post a Comment