what we have to do with a adsense html code - html

I have recently started a Blog, The blog is made using Blogger, Then I thought of preparing my site to show ads and then I created a Adsense account and then in the sites section I had given the URL of My Blog and after some days I saw the sites section and there was written that needs attension, Then I clicked on it and I found that there was wriiten a Notice and a code which I have pasted below :-
Copy and paste this code in the HTML of your site, between the and tags.
Your AdSense code
<script data-ad-client="ca-pub-4836518523777258" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
Now I am Confused That where I have to add this code, In my blog theme's HTML which I have installed currently or some where else can someone tell me.

You have actually to connect Blogger to Google AdSense. They have a direct connection, you don't need to add any code.
If you already have Google AdSense
Go to the Earnings Tab on Blogger (top bar, in the dropdown)
Link Your AdSense Account to your Blogger Account there
Specify Where to Display AdSense, you'll have there 3 places to choose from
Go to Your Blog Layout (left menu, "Layout")
Add the AdSense Gadget
Done! You have now ads

Related

Google Blogger Gadgets Changing HTML Code By Adding Forward

I am trying to add a few widgets linked to external websites on a Google Blogger page. I am adding these widgets into Blogger Gadgets on the sides of the page.
When I copy and paste the widget code into the gadget and then hit save I notice that there is a "/" being added in certain places in the code. In one instance this is keeping the widget from updating with new information and for another widget I think it is keeping the widget from updating properly.
An example is "img src="http://www.hamqsl.com/solarn0nbh.php?image=random" /". The "/" at the end is not there when I place the code in the gadget. After I save it and look at it again the "/" is there. This is keeping the widget that this code links to from ever updating. The widget maker even advises against placing special characters into the code to prevent this issue.
How can I stop these "/"s from being added? I asked this question on the Blogger help forum but was directed here.
Thanks,
Chris

How can I redirect just a single blogger.com page to an external URL?

I have a blogger.com blog that covers a variety of topics, including PC troubleshooting tips. I've decided to start a dedicated PC troubleshooting blog, using a different blogging service. I want to move some of those PC troublehshooting posts from the old blog to the new blog. I want people who end up at the old posts via search engines to be automatically redirected to the posts on the new blog.
I know I can easily redirect the entire blog to an external blog, but I don't want that. I want to preserve the old blog, but just relocate some of its posts to the new one.
I know I can redirect individual blogger.com pages to other pages within the same blog, but I don't want that either. I want to redirect to an external URL.
I can add html code to blog posts in blogger, but I think it only accepts code that goes into the {body} section. Perhaps my problem boils down to two questions:
is there a way to edit the {head} section of a blog post without doing it for the entire blog?
is there a way to do an automatic redirect using code that you put in the {body} section?
It wouldn't be a 301 redirect, but you could put this code inside your body:
<script type="text/javascript">
window.location = "http://myblog.blogger.com/mypost";
</script>
Use pages gadget for a proper search engine friendly 301 redirect. Go to layout > click pages gadget (or add it if you are not already using it) and edit it to simple add external page to your menu. The only caveat is that it will become a part of the menu and will not be a hidden redirect which you can only manually post in links.

Configure Octopress to support Google Authorship via link tag

I would like to configure my Octopress blog to add an author link in the head element of all pages so that my Google+ picture will show up next to search results for my blog posts. Currently, I believe I could include a
<link rel="author" href="url/to/google/plus/profile">
in each post, but this gets tedious. Since every article on my blog is written by me, I would like the link above to just show up in the header of every Octopress page of my blog. Then on Google+ I can just list my blog as a site I contribute to, rather than listing that I contribute to each individual article.
I'm new to Google Authorship so maybe what I'm trying to do is not the best approach. My overall goal is simply to get my Google plus photo to appear next to all my Octopress blog articles in Google Search results and on Google+, list only my blog as a site I contribute to (not each individual article).
I learned that the Octopress built-in Google+ 3rd party plugin http://octopress.org/docs/configuring/#third_party supports establishing authorship and is probably the intended way for Octopress bloggers to add the desired functionality.
To use it you can change the Google+ section around line 80 in the _config.yml file:
# Google Plus Profile
# Hidden: No visible button, just add author information to search results
googleplus_user: 111234567439674839635
googleplus_hidden: false
replacing the user number with your own, which you can find by going to your Google+ profile and copying the number in the address bar. Then, as long as you have added the URL of your Octopress blog to your "Contributor To" section on your Google+ profile page, your profile image should show up next to search results for your blog articles.
For reference on how Google Authorship works:
http://searchengineland.com/the-definitive-guide-to-google-authorship-markup-123218
To see how your blog will show up in Google search results, you can
use this testing richsnippet:
http://www.google.com/webmasters/tools/richsnippets
I had erroniously set my googleplus_user url to be the full URL of my Google plus account without realizing it, so authorship was not working. Thus, I sought to manually add the <link> tag in my original question.
You'll want to update the head.html template (provided in the octopress theme) file with your authorship markup.
https://github.com/imathis/octopress/blob/master/.themes/classic/source/_includes/head.html#L20

Facebook, Twitter, and Google +1 buttons using only HTML (No Javascript)

I would like to know if there is a method to create "share" buttons for Facebook, Twitter and Google +1 using only HTML, without any Javascript having to be inserted into the code at any point.
For example, you can use the methods described below to create these buttons dynamically; however they all end up loading Javascript dynamically and creating their own code behind the scenes:
http://developers.facebook.com/docs/reference/plugins/like/
http://twitter.com/about/resources/buttons
http://www.google.com/webmasters/+1/button/
The following links will register the appropriate Likes, Tweets and +1s:
http://www.facebook.com/sharer.php?u=http://example.com
http://twitter.com/share?url=http://example.com&text=Description
https://plusone.google.com/_/+1/confirm?hl=en&url=http://example.com
These links will work for Wordpress:
Facebook
Like
Twitter
Tweet
Google +1
+1
google plus not working in the above example.
I used this for google plus.
<div id="custom-google-button">
google+
</div>
In Wordpress :
google+
Linkedin :
<div id="custom-linkedin-button">
Linkedin
</div>
In Wordpress :
Linkedin
Sources :
https://developers.google.com/+/plugins/share/
https://developer.linkedin.com/documents/share-linkedin
This is a pretty useful article that provides the answer you are looking for without using any PHP - http://www.hanselman.com/blog/AddSocialSharingLinksToYourBlogWithoutWidgetJavaScript.aspx
TWITTER
Twitter
FACEBOOK
Facebook
GOOGLE+
Google+

Wordpress widget not showing on all pages - html problem?

A widget in SideBarOther shows up on the main article listing page, but when I select an article (same page layout, the article replaces the listing), the widget isn't there. There are two items in SideBarOther, and only the 2nd one has this problem (see code below). If I remove the first one, it is correctly gone from from both the listing page and article page, and the 2nd one still only shows up on the listing page. I'm using an unmodified "News Magazine Theme 640" theme.
<a href="http://www.facebook.com/pages/[our-page]/[our number]" title="[our name]"
target="_blank"><img src="../pics/fbook_button.jpg" boder="0" alt="[our name]"></a>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like
href="http://www.facebook.com/pages/[our name]/[our number]" layout="box_count"
show_faces="false" width="50"></fb:like>
NO, I am not confusing which widget is not appearing - the local directory reference ../pics on the first widget works on all pages. The Facebook Like button is the one that isn't appearing on all pages.
This is not hosted by Wordpress, rather Wordpress v. 2.92 is installed on our website.
(I tried the official wordpress forum, and got no reply.)
UPDATE
I "viewed page source" in Firefox, and THE CODE IS THERE on the article page, and it's IDENTICAL to the listing page. So why isn't it displayed??? I tried the Opera browser, same results. I added another copy of the first widget, and two of them appear on the listing page, and on the article page - the box automatically adjusted to accommodate them.
Adding <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> before the Facebook Share Code solved this problem. This was discovered after I found that if I disabled the Facebook Share plugin, the like button then worked.