Css Code
Js Code
HTML For Page Code
What is Sitemap?
A site map is a list of pages of a web site. There are three primary
kinds of site map: Site maps used during the planning of a Web site by
its designers. Human-visible listings, typically hierarchical, of the
pages on a site. Structured listings intended for web crawlers such as
search engines. [
Wikipedia]
What is Sitemap Page?
Sitemap page sitemaps is created with HTML (Hyperlink Text Markup
Language). It's usually used to make a list to all the post that are
published on your site.
A HTML Sitemap Page can reduce your bounce rate.
Features of This Sitemap Code
- Easy Setup
- Easy to Customize
- Post Limit set
- SEO Friendly
- Custome Css Suported
Live Demo
Requirments
How to add a Sitemap page in Blogger?
Follow those steps for add a sitemap page in Blogger. Do the all steps Carefully.
Step 1: First login to you
Blogger account a choose a site.
Step 2: Click on
Pages >
New Page.
Step 3: Now Add a
Page Title and Switch the mode
Compose to
Html Mode.
Step 4: Now Past this code -
<script type="text/javascript"> var numposts = 100; var standardstyling = true; function showrecentposts(json) { for (var i = 0; i < numposts; i++) { var entry = json.feed.entry[i]; var posttitle = entry.title.$t; var posturl; if (i == json.feed.entry.length) break; for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') { posturl = entry.link[k].href; break; } } posttitle = posttitle.link(posturl); if (standardstyling) document.write('<li>'); document.write(posttitle); } if (standardstyling) document.write('</li>'); } </script> <ul style="margin:0"> <script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts&max-results=999"></script> </ul>
Step 5: Now go to Page Settings, add Description for this page and Disable Comment.
Step 6: Now Publish the Page
Your sitemap page is now ready now click on view for preview your sitemap 😊.
Customize
Change var numposts
= 100 Value for limiting number of post show. [For example var numposts = 300]
1. Find the
<head> tag in your blogger template and place
latest jquery just below it. Please avoid to use two jquery links,
remove older one and use the new version.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" ></script>
2. Second look for this code
<data:post.body/> inside Blogger theme and replace it with the following code –
<div id="PostBody">
<data:post.body/>
</div>
<div id="AdCode">
<div style='margin:5px 0;text-align:center;clear:both;'>
<!-- Ad Unit Code Here -->
</div>
</div>
New Blogger template may have 2 or 3
code. You should have to identify correct one. Generally 2nd instance of is right code to replace in new blogger templates.
3. Now search for tag inside Blogger theme and put following javascript before/ just above it.
<b:if cond='data:blog.pageType == "item"'>
<script>
$AdCode = $("#AdCode").html();
$("#PostBody br:lt(1)").replaceWith($AdCode);
$("#AdCode").remove();
</script>
</b:if>
4. Save the changes made in Blogger theme and have fun.
You can choose your Ad location –
By replacing the value
br:lt(1) with
br:eq(n),
where n= 1, 2, 3… which is the number of line breaks after which Ad
will appear in your post. e.g. If you want to show Ad after 5th line
break then replace br:lt(1) with br:eq(5) and you are done.
CODE
<!--code by: bloggerfreecodes.blogspot.com.com--><script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- anupam404 link ads -->
<br />
ADSENSE ADS
<br />
<div class="bloggerfreecodest">
<center>
Please Enable Ads / and Plz Wait 15 Sec For Loading Ads, We Are Not Use Any Popup Ads, We Hates Popups Ads, We are Work Very Hard So Please Enable Ads, ..!!</center>
</div>
<center>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<center>
<span id="countdown"><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFKP9XCC8R9Ywbmi5kQrVPpFzPODCX-bRS9KE3ClkczQDA9TVNbnmSTpA7xwirGnyus5QbMvx77vDx_-VsOJJ1BA5X7MamxBdQruFGrG8LtJXw-axZxmJxazLYhI1QvBmy9JgJsA8Iu_hn/s1600/animated_progress_bar.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="20" data-original-width="196" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFKP9XCC8R9Ywbmi5kQrVPpFzPODCX-bRS9KE3ClkczQDA9TVNbnmSTpA7xwirGnyus5QbMvx77vDx_-VsOJJ1BA5X7MamxBdQruFGrG8LtJXw-axZxmJxazLYhI1QvBmy9JgJsA8Iu_hn/s1600/animated_progress_bar.gif" /></a></div>
</span></center>
</div>
</div>
</center>
</div>
<br />
<div style="text-align: center;">
<div class="clear">
</div>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
ADSENSE ADS
<br />
<center>
<a class="bloggerfreecodesdownload" href="https://draft.blogger.com/?link" id="download_link" style="display: none;"><span style="color: white;"><b>Download</b></span></a>
<noscript>JavaScript needs to be enabled in order to be able to download.</noscript></center>
<script type="application/javascript">
(function(){
var message = "%d seconds before download link appears";
// seconds before download link becomes visible
var count = 20;
var countdown_element = document.getElementById("countdown");
var download_link = document.getElementById("download_link");
var timer = setInterval(function(){
// if countdown equals 0, the next condition will evaluate to false and the else-construct will be executed
if (count) {
// display text
countdown_element.innerHTML = "You have to wait %d seconds.".replace("%d", count);
// decrease counter
count--;
} else {
// stop timer
clearInterval(timer);
// hide countdown
countdown_element.style.display = "none";
// show download link
download_link.style.display = "";
}
}, 1000);
})();
</script>
</div>
</div>
<br />
ADSENSE ADS
<br />
ADSENSE ADS
<style>
.bloggerfreecodest {
background-color: tomato;
color: white;
padding: 10px;
}
</style><!--code by: bloggerfreecodes.blogspot.com.com-->
CSS
<!--code by: bloggerfreecodes.blogspot.com.com--> /* Download */
.bloggerfreecodesdownload{display:inline-block;position:relative;padding:10px 25px;background-color:#ff0000;color:#fff;font-family:sans-serif;text-decoration:none;font-size:.9em;text-align:center;text-indent:15px}.bloggerfreecodesdownload:hover{background-color:#333;color:#fff}.bloggerfreecodesdownload:after,.bloggerfreecodesdownload:before{content:' ';display:block;position:absolute;left:15px;top:52%}.bloggerfreecodesdownload:before{width:10px;height:2px;border-style:solid;border-width:0 2px 2px}.bloggerfreecodesdownload:after{width:0;height:0;margin-left:3px;margin-top:-7px;border-style:solid;border-width:4px 4px 0 4px;border-color:transparent;border-top-color:inherit;animation:downloadArrow 2s linear infinite;animation-play-state:paused}.bloggerfreecodesdownload:hover:before{border-color:#ff0000}.bloggerfreecodesdownload:hover:after{border-top-color:#ff0000;animation-play-state:running}@keyframes downloadArrow{0%{margin-top:-7px;opacity:1}0.001%{margin-top:-15px;opacity:0}50%{opacity:1}100%{margin-top:0;opacity:0}}<!--code by: bloggerfreecodes.blogspot.com.com-->
- First, Sign in to Blogger with your Google Account.
- Click the Down arrow in the top left, then choose the blog you want to work on.
- In the left menu, click Template.
- Click Customize under Live on Blog.
- In the left menu, click Advanced > Add CSS.
When you will click
Add CSS, the following
custom CSS area will appear —
Add the following
CSS
code into this area and click
Apply to Blog in the top right corner. Reload your blog page to see the changes.
.post-body img {
width: 500px!important;
height: auto!important; }
Now you should see the images have been resized and fitted their post areas automatically.
What to Do if the CSS Code above not Work
If the code above doesn’t work, that means the same styles already
exist in your template. So to make it work, we have to override the
existing styles using
!important
rule at the end of the values. Use the following
CSS
instead of the above —
.post-body img {
width: 500px!important;
height: auto!important; }
Notification
This is just an example, you can fill it later with your own note.
Done