Showing posts with label Customize. Show all posts
Showing posts with label Customize. Show all posts

Adsense ads in Blogger post body



Using Blogger Feature:

You can use Blogger's own feature of putting ads in between posts...
Go to Layout -> Page Elements... you would see "Blog posts" click the edit link at the bottom right corner.



You would need a Google Adsense . You will be assigned a publisher identity number which shall appear in all your adsense codes.....
Tick the "Show Ads Between Posts" .You can select whether to show ads after every post or after several posts.
Save and refresh your blog to see the ads...

More ad Locations:



Go to Adsense For Content
Make Ad of your choice
You would get a Adsense Code





Changing the Adsense Code:

You Should replace some character

< with &lt;
> with &gt;
" with &quot;


Your Adsense code should appear like this...

&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-0000000000000000&quot;;
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = &quot;336x280_as&amp;amp;quot;;
google_ad_type = &quot;text&quot;;
google_ad_channel = &quot;&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;000000&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;000000&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;


Insert Code Into Template:

Go to Blogger Account and Layout -> Edit HTML
"Expand Widget Templates"

First Download your template before making any changes...

Now search for "post.body" you should see these lines
<div class='post-body'>
<p><data:post.body/></p>
<div style='clear: both;'/> <!-- clear for photos floats -->
</div>


If you want the ads to appear between your post title and post body, add the following code above the orange lines and if you want you your adsense code immediately after every individual post, add the following post below the orange lines.
The code to add is


 <div style='float:left; margin-left:30px'>
AdSense Code
</div>
Keep blogging!!!
if you like this post then please leave a comment or subscribe via RSS or Email.

Add Digg button to Blogger

This is the step by step guide to show you how to add a Digg button to your Blog....
Digg is a social content website where your readers or you can submit content to. If you have a good story, members will 'digg' the post and write comments. As a blog owner, you may want to make it easy for and encourage your readers to submit and digg your articles.

Automatic Count and Vote Button

Before you do that though, you would want to take note of the following:-

1. Your blog should be set to save Post Pages. Post Pages are archived blog posts published to their own web page. Each post will have a unique URL, which is required by Digg for the individual posts to be submitted. To verify or enable it, login to your Blogger Dashboard. Under Settings-> Archiving, set the “Enable Post Pages?” to “Yes” and save the settings.

2. This template hack will put a Digg button to every post. You are therefore not able to choose which post you want to include or exclude a button. If you would prefer to have a Digg button added only to some posts, read the later part of this article on “Button for selective posts.”

3. The code reads the URL of the individual blog page and this shall be the URL used for submission of the story to Digg.

Under “Template”, click the “Edit HTML” tab. Block copy the entire HTML code for your site and save it in a text file. You can also click the "Download Template" link. This is one of the two necessary steps whenever you want to change the template. The second step is of course to “Preview” the new changes, and save the changes only when you are satisfied. The backup you have saved in a text file will come in handy when you accidentally click to save the changes without previewing them. With a backup, you can easily restore the template to the prior state if need be.

Click the box next to “Expand Widget Templates”. Scroll about two-thirds down the template to look for the code that reads:-

<p><data:post.body/></p>


If you want the button to show at the top right corner of your post, replace the above code with this.

<div style='float:right; margin-left:10px;'><script type='text/javascript'>digg_url="<data:post.url/>";</script><script src='http://digg.com/tools/diggthis.js' type='text/javascript'/></div><p><data:post.body/></p>


This is what you get:-


Please leave a comment if you like this post or subscribe to this blog via RSS or Email.

Add HTML, CSS, or Any script in Blogger Posts

I thought to post about Adding Scripts to Blogger posts as i think many of the people are facing problem, when they add a Html script to their post then that post after publishing comes to its layout........... to stop blogger from doing that you should do a simple and an easy step with your html.
Add < instead of < and > instead of >
For example
you i wanna add this html to blogger post

<p align="left"><form id="searchthis" action="YOUR BLOG URL/search" style="display:inline;" method="get">

I would change those starting and ending tags
like this:
p align="left" > form id="searchthis" action="YOUR BLOG URL/search" style="display:inline;" method="get"

Please leave a comment if you like this post or subscribe to this blog via RSS or Email.

Adding Blogger Search Box

Hi Friends...
This post is about adding a Blogger blog search box to your blog. Although Google Blogger have a Nav Bar at the top of blogs.... But if you want to add another search Box ( blogger search box) to the area of your then let me show you

Go to your Blogger account->Under Template->Page Elements tab, click “Add a Page Element” at the place where you want your search box to appear. Select “HTML/JavaScript”.There are several HTML codes posted on the net. I tried a few, and found the one that works as follows:-


<p align="left"><form id="searchthis" action="YOUR BLOG URL/search" style="display:inline;" method="get"><strong>NAME OF YOUR BLOG<br/></strong><input id="b-query" maxlength="255" name="q" size="20" type="text"/><input id="b-searchbtn" value="Search" type="submit"/></form></p>

Remember to change YOUR BLOG URL to the URL or web address of your Blog. Also, change the NAME OF YOUR BLOG to that which you want to call your site. For instance, if your Blog Name is long, you may want to write something like “Search Here” or “Search this site”.You can also change the “Search” button to say, “Hit” or “Go”, by changing the Value.Save the code and refresh your page. If you want a longer or shorter search box, you can play around with the size. The above example of a width size="20" and value="Hit" will give you this:-


Search Here



Whereas a width size="30" and value="Go" will give you this:-


search here

The size of the search box is a matter of appearance. You may have noticed that the maxlength="255". This indicates that a user may enter up to 255 characters in the search box, which I think is sufficient and need not be altered.


Please leave a comment if you like this post or subscribe to this blog via RSS or Email.