Is there any way where you can stop showing Adesne ads in Contact us page, About us, or any other post where you do not want to show ads because it will get bad reading experience. Yes? if your answer is yes so I have solution for it. I have some steps which you need to follow then after it will not show any ad in some specific pages in your blogger blog as per your choice.
Step 1. First you need go at your blogger Dashboard and then Layout. In layout you need to add a Gadget, add HTML/JavaScript with title. Specify the title name such as "Cool Post" because we will need to work with the title.
Step 2. After save, Click on Template which is just below to Layout and then click on Edit HTML. In edit HTML, Click any where and press Ctrl+F to open search box.
Now, find any widget title in search box and enter (I entered "Blog Archive"). So i will find below code.
Step 1. First you need go at your blogger Dashboard and then Layout. In layout you need to add a Gadget, add HTML/JavaScript with title. Specify the title name such as "Cool Post" because we will need to work with the title.
Step 2. After save, Click on Template which is just below to Layout and then click on Edit HTML. In edit HTML, Click any where and press Ctrl+F to open search box.
Now, find any widget title in search box and enter (I entered "Blog Archive"). So i will find below code.
The above code show's it's location in layout itself.<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>
It's time to make some change's To show the widget only on Homepage
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
To Show widget only on post pages
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "item"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
To hide widget only on post pages
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType!= "item"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
To Show gadget only on specific pages
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url == "URL of the page"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
Note - You can replace the URL of the page if you want to display the gadget.
To hide gadget only on specific pages
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url != "URL of the page"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
To show gadget in static page
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType == "static_page"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
To hide gadget in static page
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.pageType != "static_page"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
To Show gadget only on archive pages
<b:widget id='HTML1' locked='false' title='Cool Post' type='HTML'>Step 3. Nothing in step 3. Just save it and have a look of your site. That's it
<b:includable id='main'>
<b:if cond='data:blog.pageType == "archive"'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if>
</b:includable>
</b:widget>
No comments:
Post a Comment