How to Install the Auto Refresh Function on Blogger

How to Install the Auto Refresh Function on Blogger
Auto Refresh functions to reload pages of a site. Usually, this auto-refresh function is used for news sites that often make changes to their site content every time, such as Kaskus forums and other large sites.



Besides being useful for displaying changes to the site automatically, the Auto Refresh function is also useful for increasing the number of Pageviews on site pages, especially for those who add advertising services such as Google AdSense or other advertising services on their blogs.

Following Namina will share How to Install the Auto Refresh Function on Blogger, let's follow the steps below.

How to Install the Auto Refresh Function on Blogger

Here I will give two ways, namely with meta and JavaScript, so choose one of these two methods.

The first way is by meta, open the Blogger dashboard > Click the Theme menu and Edit HTML > Add the code below right below the code <head> or &lt;head&gt;

<b:if cond='data:view.isHomepage'>
<meta content='90' http-equiv='refresh'/>
</b:if>
Note the text that is marked, the number 90 means the time needed for the blog page to reload the page every 90 seconds . Change the number as desired.
Once added, click Save theme and see the results on your blog.

The second way is with JavaScript, in the template editor add the code below before the code </head> or </body>
<b:if cond='data:view.isHomepage'>
<script type='text/javascript'>
//<![CDATA[
setTimeout('location.href=\"/"' ,90000);
//]]>
</script>
</b:if>
Change 90000 (90 seconds) to your liking.
After that click Save theme and see the results on your blog.

Maybe you ask, why in each of the code above I add a special conditional tag for the main page or index? Because if the code works on all pages of the blog then it will be quite disturbing to visitors when reading on your blog article pages.

The tips above will be very suitable for you who have a site with many writers who update new articles regularly every time. So visitors can see the latest articles on your site instantly.
Nama File

Namina Responsive Blogger
File Size 300MB
Jika tidak terdownload otomatis silakan klik download Ulang. Dan jika link rusak silakan lapor melalui halaman Contact Form blog ini.

Post a Comment

Post a Comment (0)

Previous Post Next Post