-->
Phong cách
Tính năng
Theo cột
Theo giá

How to Install the Auto Refresh Function on Blogger

How to Install the Auto Refresh Function on Blogger


How to Install the Auto Refresh Function on Blogger
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 writing 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 enough to disturb the visitors when reading on the pages of your blog articles.

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.

Okay, that's all from ThugsofBD for tips on How to Install the Auto Refresh Function on Blogger, hopefully, it's useful.


THÔNG TIN THANH TOÁN & DỊCH VỤ:

  • Tên tài khoản: Nguyễn Anh Tuấn
  • Số tài khoản: 0501000058467
  • Ngân hàng TMCP Ngoại thương Việt Nam (Vietcombank) - Chi nhánh Bắc Sài Gòn
  • Hỗ trợ cài đặt: fb.com/kequaduongvodanh
  • Dịch vụ: Xem chi tiết >>
    + Nhận convert template từ Wordpress
    + Sửa lỗi, nâng cấp template
    + Thiết kế Form Liên hệ từ Google Form
0 Comments