How to display only content posts or pages on blogger
Usually a blogger when creating a page on a blog that wants content that is displayed only content only. In other words a blogger wants to create a clean page.
Yes, the purpose of this article is to help you guys who want to create a clean page from comments, widgets, or navigation headers.
Here's the tutorial:
Make sure you had call jquery framework ( https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js ) before </head>Lets begun:
Tutorial to display content of posts or pages only in blogger:When you create an article or page, put the code below at the end of your article or content page in HTML EDITOR.
<script> $('div:not(div[id^=post-body-])').hide(); // hide everything except id="post-body-xxxxxxxxxx" $("[id^='post-body-']").appendTo('body'); // move id="post-body-xxxxxxxxx" up to the body </script>
Done. I hope this post be help you..
Dont forget share this blog. Thank you..
- Make clean pages on blogger
- Make clean articles on blogger
- Make articles or pages clean from comments, widget, and anything except the content articles or pages.