How to Split a Long Blog Post into Multiple Pages on Blogger

Long blog posts can be a great way to share your knowledge and expertise with your readers. However, they can also be daunting to read, especially on mobile devices. Splitting a long blog post into multiple pages can help to improve readability, reduce loading times, and improve the user experience. One way to make your long blog posts more readable and user-friendly is to split them into multiple pages.

In this blog post, we will show you how to split a long blog post into multiple pages on Blogger. We will also discuss the benefits of doing so, such as:

  • Improved readability: Splitting a long blog post into multiple pages makes it easier for readers to scan and digest the content.
  • Better user experience: Readers can easily navigate between pages to find the information they are looking for.
  • Increased page views: Splitting a post into multiple pages can lead to more page views, as readers are more likely to click on the next page link to continue reading.
  • Enhanced SEO: Splitting a post into multiple pages can help improve your SEO by allowing you to target different keywords for each page.
Split a Long Blog Post into Multiple Pages on Blogger

Benefits of Splitting a Blog Post into Multiple Pages

  • Improved readability: Splitting a long blog post into multiple pages makes it easier for readers to scan and digest the content. This is especially important on mobile devices, where screens are smaller.
  • Reduced loading times: Splitting a blog post into multiple pages can reduce the overall loading time of the page, which can improve the user experience.
  • Better user experience: Readers can easily navigate between pages to find the information they are looking for. This can help to reduce the bounce rate and increase dwell time.
  • Increased page views: Splitting a post into multiple pages can lead to more page views, as readers are more likely to click on the next page link to continue reading. This can help to improve your overall traffic and engagement.
  • Enhanced SEO: Splitting a post into multiple pages can help improve your SEO by allowing you to target different keywords for each page. This can help to improve your ranking in search engine results pages (SERPs).

Video Tutorial Related to This Topic

If you don’t feel like reading, then instead of reading you can watch the video below that is related to this topic.

How to Split a Blog Post into Multiple Pages on Blogger

Now I am going to share the method to split blog post into multiple pages on Blogger. Follow the steps below and do not miss any points. Otherwise, this may not work on your website.

Step 1: Edit Your Blog Template in HTML Mode

First of all, we need to add the pagination code to the Blogger template to paginate a blogger post. Here is how to do it:

  • Log in to Blogger Dashboard
  • Now go to Theme > Customize > Edit HTML 
  • After that press Ctrl + F and search for  ]]></b:skin> and paste the below CSS code above  ]]></b:skin> or </style>
/* change color code #ff0033 for your template */
.postNav{display:flex;flex-wrap:wrap;justify-content:center; font-size:90%;line-height:20px; color:#fefefe; margin-top:30px;margin-bottom:0}
.postNav > *{display:flex;align-items:center; padding:10px 13px;margin-bottom:10px; color:inherit;background-color:#ff0033; border-radius:2px;text-decoration:none} .postNav > *:hover{opacity:.8}
.postNav .current{background-color:rgba(0,0,0,.03); color:#989b9f}
.postNav{font-size:13px; margin:50px 0} .postNav > *{padding:8px 15px;border-radius:2px;margin-bottom:8px} .postNav > *:not(:last-child){margin-right:8px}
  • Finally, copy the following JavaScript code and paste it above </body> or &lt;!--</body>--&gt;&lt;/body&gt; and then click on the Save icon to save the change.
<b:if cond='data:view.isPost'>
<script>/*<![CDATA[*/ document.addEventListener('DOMContentLoaded', function() {function checkChildren(nodes, elemId){for(i=0;i<nodes.length;i++){if(nodes[i].id==elemId){return nodes[i];}else{return checkChildren(nodes[i].children, elemId);}}} function isNumeric(value) {var type = typeof value; return (type === 'number' || type === 'string') && !Number.isNaN(value - Number.parseFloat(value));} var nodes = document.querySelector('div.post-body').children; var splitdong = checkChildren(nodes, 'postSplit').innerHTML; var content = splitdong.split('<!--nextpage-->'); var url = window.location.href; var url = url.split('?page='); var no = url[1] + '&m=4'; var no = no.split('m'); var no = no[0]; var no = no.replace('&', ''); var url = url[0]; var i = 1; if( !isNumeric(no) ){var no = 1;} document.getElementById('postSplit').innerHTML = content[no-1]; if( content.length > 1 ) {document.getElementById('postSplit').innerHTML += "<div class='postNav' id='postPager'><span class='page current'>Pages :</span></div>";} if( no>1 ){document.getElementById('postPager').innerHTML += "<!-- <a href='"+url+"?page="+(no-1)+"' title='Previous Page'>Prev</a> -->";} content.forEach(function(item) { if( no == i ){document.getElementById('postPager').innerHTML += "<span class='current'>"+i+"</span>";} else {document.getElementById('postPager').innerHTML += "<a href='"+url+"?page="+i+"'>"+i+"</a>";} i++; }); if(content.length > no){ var nn = parseInt(no) + 1; document.getElementById('postPager').innerHTML += "<a href='"+url+"?page="+nn+"'>Next</a>";} }); /*]]>*/</script>
</b:if>

Plus-UI and Median UI Blogger Template users use the below JavaScript code instead of this one. Otherwise, Pagination will not work in your template.

<b:if cond='data:view.isPost'>
<script>/*<![CDATA[*/ document.addEventListener('DOMContentLoaded', function() {function checkChildren(nodes, elemId){for(i=0;i<nodes.length;i++){if(nodes[i].id==elemId){return nodes[i];}else{return checkChildren(nodes[i].children, elemId);}}} function isNumeric(value) {var type = typeof value; return (type === 'number' || type === 'string') && !Number.isNaN(value - Number.parseFloat(value));} var nodes = document.querySelector('div.postBody').children; var splitdong = checkChildren(nodes, 'postSplit').innerHTML; var content = splitdong.split('<!--nextpage-->'); var url = window.location.href; var url = url.split('?page='); var no = url[1] + '&m=4'; var no = no.split('m'); var no = no[0]; var no = no.replace('&', ''); var url = url[0]; var i = 1; if( !isNumeric(no) ){var no = 1;} document.getElementById('postSplit').innerHTML = content[no-1]; if( content.length > 1 ) {document.getElementById('postSplit').innerHTML += "<div class='postNav' id='postPager'><span class='page current'>Pages :</span></div>";} if( no>1 ){document.getElementById('postPager').innerHTML += "<!-- <a href='"+url+"?page="+(no-1)+"' title='Previous Page'>Prev</a> -->";} content.forEach(function(item) { if( no == i ){document.getElementById('postPager').innerHTML += "<span class='current'>"+i+"</span>";} else {document.getElementById('postPager').innerHTML += "<a href='"+url+"?page="+i+"'>"+i+"</a>";} i++; }); if(content.length > no){ var nn = parseInt(no) + 1; document.getElementById('postPager').innerHTML += "<a href='"+url+"?page="+nn+"'>Next</a>";} }); /*]]>*/</script>
</b:if>

Step 2: Paginate a Blogger Post

Now that we have added the Blogger post pagination code into the Blogger template, now we need to write the blog post properly to make this pagination work. Follow this writing typo to make the pagination work.

How to write properly to split blog post into multiple pages

While writing a content or blog post you must keep everything inside the following HTML tags. To be able to do that turn on HTML view and insert the below HTML code. And then write the rest of your blog post inside it.

<div id='postSplit'>
<!-- your content here -->
</div>

Wherever you want to split your blog post to the next page, add the following comment tag except for the last page. 

<!--nextpage-->

So the whole HTML structure of your blog post will look something like this:

<div id='postSplit'>

<h2>Heading 1</h2>
<p>paragraph here</p>
<!--nextpage-->

<h2>Heading 2</h2>
<p>paragraph here</p>
<!--nextpage-->

<h2>Heading 3</h2>
<p>paragraph here</p>

</div>

Conclusion

Splitting a long blog post into multiple pages is a simple and effective way to improve the readability, user experience, and SEO of your content. By following the steps outlined in this blog post, you can easily split your long blog posts into multiple pages and reap the benefits. It is also a simple process that can be done in a few minutes using Blogger's HTML editor.

If you have any long blog posts that you would like to split into multiple pages, be sure to follow the steps outlined in this blog post. You will be glad you did!

I hope this feedback is helpful. Good luck with your blog!

Next Post Previous Post
No Comment
Add Comment
comment url