SEE ALSO: Top Advertising Network For Blog Publishers And Advertisers
Image Credit: amazonaws.com |
https://www.blogger.com/rearrange?blogID=554588999752040849&widgetType=HTML&widgetId=HTML12&action=editWidget§ionId=sidebar
4- Now copy the widget ID shown in the red, the number of your widget ID could be different from my ID, it depends on how many widgets you have added.
5- Now go to Template >> Edit HTML and don’t forget to take backup of your template if you are going to make any changes in your template.
6- Now click Format Template >> Now click on the HTML field and press Ctrl+F and copy the widget ID and paste it into the search bar and hit enter.
7- Now you should see the following piece of code
<b:includable id=’main’>
8- Now just below the above code paste the below code.
<b:if cond=’data:blog.url == data:blog.homepageUrl’>
9- Now scroll down and you should see the below code
</b:includable>
10- Now just above code paste this code
</b:if>
If you do it for a HTML widget then it should look like as shown in the image above.
That’s it, now you can see preview or you can simply save your template and you can see that the widget is only appears on the home page. Also, if you add more than three ad units then Google automatically hides the extra ad unit from your pages, but when you use the above trick then it will not hide from your home page, because now you have made it to be appear only on the home page.
There are many other different places where you can make your widget appear in a specific place only, Below i have mentioned all of them except the above one.
SEE ALSO: How To Choose Custom Fonts For AdSense Ads Units
Ho to show Adsense Ads Unit and Widgets Only Appear on the blog posts.
All the process is same but there are some changes you have to make in your template. In step 8 you will have to make a small change to make your Adsense widget appear on the blog posts, Just replace the code:
<b:if cond=’data:blog.url == data:blog.homepageUrl’>
With this
<b:if cond=’data:blog.url == “Blog Post URL”‘>
Don’t forget to replace Blog Post URL with the URL of your post for which you want the widget to be appear.
How to make the widget appear on the post pages only
To make your widget appear on the post pages just use the below code on step 8.
<b:if cond=’data:blog.pageType == “item”‘>
How to make the widget appear on the list pages only
To make the widget appear on the list pages only use below code on step 8.
<b:if cond=’data:blog.pageType == “index”‘>
How to make the widget appear on the archive pages only
Use below code on step 8 to make widget appear on the archive page.
<b:if cond=’data:blog.pageType == “archive”‘>
How to make the widget appear on the Static pages only
Use below code on step 8 to make widget appear on the archive page.
Conclusion:
Using these ways you can easily make your Adsense and other widget appear on a specific page locations on your blog, so they can appear separately on a specified locations. It also helps you to show more than three Adsense ads units on your pages.
Feel free to ask if you have any problem or if you want any help and just let me know how this post helped you?.
This post was last modified on 14th June 2018 10:08 am
Grinding Gear Games has released Patch 3.24.2 for Path of Exile: Necropolis. The latest update…
In today's digital age, the world of personal finance has expanded beyond traditional brick-and-mortar institutions.…
Within the dynamic realm of video games, the stealth genre is distinguished by its painstaking…
BTRoblox is a popular browser extension that allows you to customize the web interface of…
Publisher 3D Realms and developer Troglobytes Games have announced that their “blasphemous” management simulation game…
ASRock has formally unveiled its contemporary addition to the DeskMeet collection, the X600 PCs, presenting…
This website uses cookies.