Reading Mode Widget/Plugin for Blogger and WordPress

Blogging is not all about creating content. It is also about gaining loyal readers. Apart from the quality of the content you provide, the visibility and readability of the content also matter. To be specific, readability includes font styles, backgrounds and eye-friendly modifications to the text on the webpage.

It is, however, difficult to modify the styles according to the individual reader’s choice. So, it is better to leave that option to the reader himself. We have developed a simple and useful snippet of HTML/JS that allows the users to change the font styles and sizes according to their eye feasting taste.

Copy the follow snippet of code and install it on your Blogger/WordPress blog.

function myFunction() {
    var x = document.getElementById("Blog1"); = "20px";     = #5E5E5E;"Open Sans";
function myFunction2() {
    var x = document.getElementById("Blog1"); = "20px";     = #5E5E5E;"Roboto";
function myFunction3() {
    var x = document.getElementById("Blog1"); = "20px";     = #5E5E5E;"Calibri";
function myFunction4() {
    var x = document.getElementById("Blog1"); = "20px";     = #5E5E5E;"Calibri";
function myFunction5() {
    var x = document.getElementById("Blog1"); = "20px";     = #5E5E5E;"PT Sans";
function myFunction6() {
    var x = document.getElementById("Blog1"); = "20px";     = #5E5E5E;"Georgia";
<button type="button" onclick="myFunction()">Style 1</button>
<button type="button" onclick="myFunction2()">Style 2</button>
<button type="button" onclick="myFunction3()">Style 3</button>
<button type="button" onclick="myFunction4()">Style 4</button>
<button type="button" onclick="myFunction5()">Style 5</button>
<button type="button" onclick="myFunction6()">Style 6</button>


Change the ID “Blog1” with the blog post area of your blog. “Blog1” here is the blog post area of Blogger blog.

Change with the values of your choice.

Change with the color of your choice.

Change with the font family of your choice.

This is a basic script and needs to be tweaked. Any suggestions of the tweaks from your side are welcomed. Your suggestions will be credited and updated in the article.

0/Post a reply/Replies

Previous Post Next Post