Showing posts with label Blogger Tutorials. Show all posts
Showing posts with label Blogger Tutorials. Show all posts

Thursday, 24 March 2016

Completely Hiding Blogger Widgets from Certain Pages

I searched some tips around on the internet for hiding / removing widgets by using CSS, jQuery or using Blogger condition tags to hide the inner content of widget. But when using those ways, Blogger will still actually load the widget, and this problem may affect the loading speed of your site. So, we have no any properly tips for hiding Blogger widgets for specific pages?

No, we have one. After researched and tested with some Blogger tags, luckily, I found a very simple and completely way to remove or prevent a widget to be loaded on certain pages. Let me show you.

First try: hiding widget from home page

Example, you want to hide a widget from home page. First, please access Template / Edit HTML, then click Jump to widget button and select the widget you want to hide. In this example, I will hide my widget HTML1.
Completely Hiding Blogger Widgets from Certain Pages

The normal HTML widget will have a full code like below:
<b:widget id='HTML1' locked='false' title='HTML Widget' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'>
<data:title/>
</h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>
Now, to hide this widget from home, please add below code after <b:includable id='main'> tag:
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:remove/>
</b:if>
The final code will  be like this:
<b:widget id='HTML1' locked='false' title='HTML Widget' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'> <b:remove/> </b:if> <!-- only display title if it's non-empty -->
<b:if cond='data:title != &quot;&quot;'>
<h2 class='title'>
<data:title/>
</h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/> </b:includable>
</b:widget>
Now, click Save template button and check your home page to see, the widget was completely removed. You can view source of home page and find the id of the widget (with my case is id='HTML1'), you would not found anything. It's magic :)

Explain how it works

The rule is simple: if a widget contains undefined Blogger tag, it will be removed completely.

In example code above, the line: <b:if cond='data:blog.url == data:blog.homepageUrl'> will check if this is the home page and the undefined tag <b:remove/> will help us removing the widget completely.

You can use another tag than <b:remove/>, but it must be an undefined tag of Blogger. Example: <b:return/>, <b:exit/>, <b:hide/>, .etc...

Hide from other pages

In this article, I will list some basic example for hiding widgets for certain page types of Blogger as below:

Hide from home page

<b:if cond='data:blog.url == data:blog.homepageUrl'>
<b:remove/>
</b:if>

Hide from index pages

 (home, label, search page or all posts page (include home and its older posts pages).
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<b:remove/>
</b:if>

Hide from static pages

<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
<b:remove/>
</b:if>

Hide from item pages

(articles, posts)

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:remove/>
</b:if>

Hide from archive pages

(showing posts by months / years)

<b:if cond='data:blog.pageType == &quot;archive&quot;'>
<b:remove/>
</b:if>

Hide from 404 pages


<b:if cond='data:blog.pageType == &quot;error_page&quot;'>
<b:remove/>
</b:if>

Hide from mobile

<b:if cond='data:blog.isMobileRequest'>
<b:remove/>
</b:if>

Showing instead of hiding

If you want to show instead of hide, you must use != instead of == . Example, if you want to show on home page, but hide from others, use this:

<b:if cond='data:blog.url != data:blog.homepageUrl'>
<b:remove/>
</b:if>

If your case is not in the above list, please comment below then I can update a new code for you.

Friday, 18 March 2016

Make Adsense account for Blog or Youtube

As we all know Google Adsense is the best way to earn from your site/blog/videos. Adsense is a program run by google that allows site owners to publish various ads on a part of their site and earn on per click basis. But the problem is not everyone can get adsense. :(


How to make Adsense account for Blog or Youtube ?
I will be explaining you the method to make GOOGLE ADSENSE accounts for your blogs or youtube channel. We all know that getting approved by Google Adsense is not easy and most of us often fail to get Adsense account for our  blog. Similarly many people upload different types of interesting videos on youtube, but they dont even know that they can earn from thier videos via Adsense.
Many people are selling adsense account by making with this method for many dollars. People use this method to make adsense accounts and sell it to new bloggers or youtube publishers. So I am sharing this method to save your money. Use this method to make adsense account for your blog or youtube channel. However this will be a hosted adsense account.

Resources you need :
1. New Google GMAIL account. ( You can also use your existing account if you haven’t tried to get adsense on that account )

2. A Youtube Channel

3. A blogger blog ( Optional )

Method:
1. First of all create a fresh Gmail account with all correct details. Make sure to mobile verify your acoount. You have to be 18+ to get adsense.
2. Go to youtube and create a channel. Its simple, just login to youtube with your gmail id. After logging in just click upload button beside the search box. Your channel will be created.
3. Upload 1 unique video to your channel ( You can just upload some pictures and make a slideshow ). Make sure that the video is minimum 40 seconds long.
4. Then go to monetization page in your channel settings.
5. Refresh the page and click on ” How will I get page “. Then click on ” associate an adsense account ” as shown
below
6. A new window will open and redirect you to adsense application form. Fill all your details correctly (Make sure the address format is perfect or else you will not get approved by adsense). Submit the application.
7. You will receive an approval email on your gmail account within 2-5 hours. Open the link given in the Email and accept everthing.
8. Congratulations Your google adsense account is Ready to be used on your blogs and youtube videos.If you still get any problem in getting your account approved feel free to contact us.
However if your channel or blog contains inappropriate content, the account will be banned soon.In the next article I will be explaining on how to use this adsense account on your blog. 

Thursday, 10 March 2016

How to Create a Custom Style Comments System in Blogger


Blogger commenting system is certainly robust enough to be customized and used safely with your blog. In the past, we have provided you some highly customized commenting systems for Blogger, and this time we thought to come up with a tutorial that could teach some beginners about the basics of creating a custom commenting system for their blogger blog. In this article, will be using those default classes to show you how to create a Custom Style Commenting system in Blogger and few cool things you can do with it.

Note: Since, different blogger templates are coded by different designers. Therefore, we want you to first get rid of all the previous CSS coding that you are using from the styling of your comments.

How to Exactly Find Which CSS Class to Edit:

Before, we teaches you how to style your comments, it is essential to get few tips or tricks to see how you can exactly find that which CSS Class or ID You should be editing to get the job well-done. Google Chrome and Mozilla Firefox come with some bunch of handy tools for web developers. The tool “Inspect Element” is a magic wand for a developer. 


Simple Hover your mouse over any element on a web page, right click and select “Inspect Elements”. Now a new panel would appear at the bottom of your screen. It would be separated into two rows. In the first row, you will see the Source code and CSS coding in other. You can edit the CSS to test few things like Margin, padding, background color and etc. You can even add your custom CSS in a Certain Id. It is like your very own developing tool. Though, the moment you will refresh the page everything would be back to normal. To make permanent changes, you have to use the same CSS in the StyleSheet of your template.

Styling Post Author Avatar:

The avatar is a kind of image that represents your identity. However, sometimes a person might like to have rounded avatar rather than having a simple rectangular one. The implementation is pretty much like just can be done with CSS and all that you need is the following chunk of CSS coding. You can also add your own custom style.

.comments .avatar-image-container, .comments .avatar-image-container img {
width: 48px;
max-width: 40px;
height: 40px;
max-height: 48px;
background: #FFF;
float: left;
border-radius: 50%;
-moz-border-radius: 50%;
margin: 0 10px 0 0;
}
#comments .avatar-image-container img {
border: 1px solid #ddd;
}
.comments .comment-thread.inline-thread .avatar-image-container, .comments .comment-thread.inline-thread .avatar-image-container img {
width: 36px;
max-width: 36px;
height: 36px;
max-height: 36px;
margin-left: 5px;
}
To stylize your avatar with round shape you can just use the following code, just paste it in the CSS coding of your template (TIP: Go to Blogger.com >> Template >> Edit HTML >> Search for Skin and above it paste the following code).

Styling Comment Body in Blogger:

Styling the comment body for the users as well as the author is something, that gives life to your system. It allows the things to work in a systematic manner. It holds everything together. For Example, a user left a comment since the body was not well-formed the text overflowed. Therefore, it is essential to give proper padding and margins so that everything looks neat and clean.

#comments {
background-color: #fff;
padding-top: 20px;
border-top: 1px solid #ddd;
}
.comments .comment-block,.comments .comments-content .comment-replies,.comments .comment-replybox-single {margin-left:60px;width:490px;}
.comments .comment-block,.comments .comment-thread.inline-thread .comment {border:1px solid #ddd;background:#fff;background-color:#fff;padding:10px;padding-right:0px;padding-left: 0px;}
.comment-header {border-bottom: 1px solid #ddd;padding-bottom: 10px;}
.thread-chrome.thread-expanded .comment-header {width: 412px;margin-left: 15px;}.comments .comments-content .comment {width:100%;line-height:1em;font-size:13px;margin:15px 0 0;padding:0;}.comments .comments-content .comment-content {text-align: justify;line-height: 22px;overflow: hidden;}.thread-chrome.thread-expanded .comment-content {width: 380px;line-height: 22px;overflow:hidden}.comments .comment-thread.inline-thread .comment-actions {display: none;}
.item-control.blog-admin {display: none;}.comments .comments-content .comment-replies {margin-top:0;}
.comments .comment-content {line-height: 1.4em;padding: 15px;}
.comments .comment-thread.inline-thread {padding-left: 0px;}
.comments .comment-thread.inline-thread .comment {width:auto;}
.comments .comment-thread.inline-thread .comment:after {content:"";position:absolute;top:10px;left:-20px;border-top:1px solid #d2d2d2;width:10px;height:0;}
.comments .comment-thread.inline-thread .comment .comment-block {border:0;background:transparent;padding:0;}
.comments .comment-thread.inline-thread .comment-block {margin-left:48px;}.comments .continue {border-top:0;width:100%;}
#comment-editor {width:98%!important;}
.comment-form {width:100%;max-width:100%;}

Here is the example of a code that can be used. You can customize it according to your desire needs.

Styling Comment Author Name and Meta:

The Blogger platform has the robust functionalities that could help you in designing the comment author name as well as the Meta information. This allows the designers to customize the date, time and the name of the author. Here is a sample code that you can simply copy and paste into the StyleSheet of your template. 

You can also add your custom styles like can alter the fonts, color, size and anything that you like. Whatever you imagine can be applied to your design.

#comments h4 {
display:inline;
line-height:40px;
padding:10px;
}
.comments .continue a {
background:#0d86cc;
text-align:center;
padding:10px 0;
display:none;
}
#comments h4,.comments .continue a {
line-height: 30px;
margin: 0;
padding: 20px 0 14px 10px;
font-size: 18px!important;
text-transform: uppercase;
font-weight: 400!important;
color: #444;
}
.comments .user a {
color: #444!important;
font-size: 18px;
line-height: 25px;
text-transform: capitalize;
margin-top: 20px;
font-weight: 600;
padding-left: 15px;
}
.comments .comments-content .datetime {
cursor: pointer;
float: right;
padding-top: 6px;
padding-right: 20px;
}
.icon.user {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR62E6DR3PcfcLcm5hVK6aEtXQhYfDlb3Sr1A4NskXzFqETcNd-ErpnP4d3h8YjyLE-rH4xfZo7Q6oQxqVsv02PKta8heEBSfCWFKnQlnkiQqhiWu6O5cUATc9No7hQUZmZfg_jNaG5A7d/s1600/online.png) no-repeat;
height: 12px;
width: 16px;
display: inline-block;
margin: 0 0 -4px 6px;
}
.comments .comment-thread.inline-thread .user a {
font-size:13px;
margin: 0px;
padding: 0px;
}

Styling Comment “Reply” button in Blogger:

Almost all blogger templates have a reply button on comments. However, it only works with threaded system. Now a day, all the default blogger templates are connected with threaded comments. So here is the example of the CSS that you can directly copy paste in the StyleSheet of the template.

.comment-actions {
background: #f2f2f2;
padding: 8px;
margin-left: 435px;
border: 1px solid #ddd;
float: right;
margin-top: -30px;
margin-right: 5px;
}
.comment-thread a {
color: #777;
}
.comments .comment .comment-actions a:hover {
text-decoration: underline;
} 

Styling Post Author Comments Different from others: 

Most often you have seen that the comment of the post author is highlighted with different backgrounds or a small tag like ‘Editor” or an additional badge is assigned to their name. This helps users to identify the real author.

This can be done with the help of .icon.blog-author that helps you to stylize the comments of the post author differently. Here is the example that you can directly copy and paste in your StyleSheet.  
.comments .comments-content .icon.blog-author {
display: inline-block;
height: 18px;
margin: 0 0 -4px 6px;
width: 18px;
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXxpllnLMDdmByK73Rj4LwQILxV1dwITvv3xsePodvCc6INqgNMvy5n07BZo2qeJ3M-_msKzWDg0Y5ShDHidTgqVRdDcck8-w0NWZREVv9SRMLHgM5KwxzqG3GKnHsh-JNzXPHsLqBvoSE/s1600/Verificon.png);
}
We hope this tutorial has helped you in learning how to create a custom style commenting system in blogger. If you face any difficulty or has any suggestion for us then feel free to let us know by leaving a comment below. 

How to Remove Hyperlinks from Post Images in Blogger


If you are using a custom Blogger template, then you probably have noticed that few of the third-party developed templates does not supports Lightbox functionality, which causes images to be opened in a new tab window whenever they are clicked by the users. Recently, one of our users asked us that How to Remove Hyperlinks from Post Images in Blogger? The easiest way to remove hyperlinks for post images in blogger is to simply revert to the HTML Tab in the blogger post editor and remove the hyperlink. However, what if you have to edit gazillion posts? Today in this article, we will show you How to Remove Hyperlinks from Post images in blogger.

Since, Blogger use Picasa web album to host your blog’s images, so whenever user clicks on an image present on your site it ultimately takes them to a different destination, which causes increase in the bounce rate and decrease in the ad sales because your users are not converting they are coming from one end and leaving from the other.

WordPress users have a slight edge because the images they host are uploaded on their own domains like example.com/img/test.png but in blogger you have to use Picasa that provides URLs somewhat like b.blogspot.com/asdasd1600/test.png which is bad for SEO.

The Solution:

The first thing you need to do is to login into your Google account. After logging in, go to Blogger dashboard >> your site >> Template >> Edit HTML and search for the Skin tag. After finding the skin tag, just above it paste the following chunk of CSS code. Once everything is done, Save the template by pressing “Save Template” button present on the top right side of your computer screen.

.post img, .post img a{position: relative;z-index: -100; }

OR

.post img, .post img a{ position: relative; z-index: -1; }
.post-outer{position: relative; z-index: 1 !important; }

OR

.entry{position: relative;z-index: 1; }
.hentry img, .separator{position: relative;z-index: -1; }

OR

.post{position: relative !important;z-index: 10 !important;}
.hentry img, .separator{position: relative !important;z-index: -1 !important;}


Congratulations: You have successfully removed Hyperlinks from post images in blogger. Now whenever, users will click any of the images present in the posts it would not open them in a new tab which may result in decrease of bounce rate.

We hope this article may have helped you in learning how to remove hyperlinks from posts in blogger. Thought, Lightbox works perfectly on our custom develop theme, but we are still using the same technique, so you all should try it too. Follow us on Twitter and Facebook.

Thursday, 25 February 2016

How to Show and Hide Widgets in Blogger?


How To Display a Certain Gadget on Specific Pages?


1. How to Display a Widget only on Homepage?
Just paste the HTML/JavaScript or CSS Coding between these lines. It will show the gadget only on the homepage of your website. It would hide the gadget from Post pages and static pages. 

<b:if cond='data:blog.url == data:blog.homepageUrl'>

WIDGET CODE GOES HERE


</b:if>



2. How to Hide a Widget on Homepage?
The following coding can be used if someone wants to restrict/hide a widget from the homepage of his site. Just add your HTML gadget coding between two lines. It would show the gadget on each and every page except homepage. 

<b:if cond='data:blog.pageType == "item"'>

WIDGET CODE GOES HERE


</b:if>



3. How To Display a Widget only on Posts?
If anyone wants to show a gadget only on post pages, then use the following coding. By using the following coding the gadget would only appear on your Posts.

<b:if cond='data:blog.pageType == "item"'>

WIDGET CODE GOES HERE


</b:if>



4. How To Display a Widget on Static pages?
If anyone wants to hide a gadget from his Static pages then, he can use the following coding. It would appear only on Static Pages.

<b:if cond='data:blog.pageType == "static_page"'>

WIDGET CODE GOES HERE


</b:if>

5. How to display a Widget on Archive pages?

If anyone desires to show a gadget on Archive pages of your website then, use the following coding. It would hide it from each and every page, expect the archive pages. 

<b:if cond='data:blog.pageType == &quot;archive&quot;'>

WIDGET CODE GOES HERE


</b:if>

6. How to display a Widget on Homepage and Post Pages?

Sometime, we desire to show certain HTML Coding on the homepage and posts. In this case, use the following coding and it would hide the gadget from Static pages. However, it would keep on appearing on Home and posts of your site. 

<b:if cond='data:blog.pageType != &quot;static_page&quot;'>

WIDGET CODE GOES HERE


</b:if>

7. How to Display a Widget on Homepage and Static Page? 

Apply the same instructions over here. It should hide the gadget from posts of your site. However, it would continue to display them on home and static pages. 


<b:if cond='data:blog.pageType != &quot;item&quot;'>

WIDGET CODE GOES HERE


</b:if>

8. How to Display a Widget on Posts and Static Pages? 

By using this coding the gadget would appear on Posts and Static pages. However, it would remain hidden from homepages. 


<b:if cond='data:blog.pageType != &quot;index&quot;'>

WIDGET CODE GOES HERE


</b:if>


How To Control Blogger's Official Widgets? 

We can apply the same procedure on Blogger's Official widgets. In fact,  these condition is applicable through out the blogger platform. Which means, we can use these conditions during our Posts, Layout and etc. For Controlling widgets do as followers.

  • Go to Blogger >> Template >> Edit HTML  >> Proceed. 
  • Check the Expand Widgets Templates Box
  • Search for the title of the widget you want to control
  • The code which you would find might look something similar to this one,

<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>

Widget CODE (Large Chunk) 


</b:includable> 

</b:widget>

On finding the coding as mentioned above, you have to Add <b:if> conditions just between these two tags <b:includable id='main'></b:includable> . After adding the <b:if> conditions the coding would look something similar to this one. 

<b:widget id='HTML' locked='false' title='WIDGET-TITLE-HERE' type='Profile'>
<b:includable id='main'>

<b:if cond='data:blog.url == data:blog.homepageUrl'>

LARGE CHUNK OF WIDGET CODE
</b:if>

</b:includable> 

</b:widget>


All Done: That's it, Save the template by pressing "Save Template Button". We hope this technique would help everyone to improve their site speed by restricting unused widget  on certain pages. Feel free to leave your comments and suggestion, Till then Peace, Blessings and happy blogging.

Hide Blog Posts From Blogger Home Page

Here I'll teach you how to create a STATIC BLOGGER HOME PAGE or LANDING PAGE ! The default blog-posts which used to appear on the home screen in any blogger blogspot blog is not present on this blogger blog of mine.

This is how you do it. You may see tutorials saying remove the following code from html editor window.


<b:widget id="Blog1" locked="false" title="Blog Posts" type="Blog">

But,if you delete this piece of code ,it deletes the blog post widget . i.e, it  removes the blog post widgte as such and you will never be able to show your blog posts. It deletes the widget from the blog totally. Here's a new trick

So to remove the blog posts from the home page alone.
  1. First go to Dashborad => Design =>Edit HTML (Edit Template HTML)
  2. The style sheet declarations end after the "]]></b:skin>" . So just search for the "]]></b:skin>" and add the code that comes after the red color ,as shown.


]]></b:skin>
<b:if cond="data:blog.url == data:blog.homepageUrl">
<style type="text/css">
.post, .sidebar, #blog-pager {display:none;}
</style>
</b:if>
<b:if cond="data:blog.url == data:blog.homepageUrl">
<style type="text/css">
body#layout .sidebar {display:inline;margin-top:200px;}
</style>
</b:if>

 Note that you are hidin both side bar and your posts here. To hide your posts alone and keep you sidebar intact  remove the .sidebar from  .post, .sidebar  from above piece of code in first block.

Now save the template. Now go do Design => Page elements and rearrange your widgets and add whatever you want as aove or below the blog post widget . Now you have your blog pos hidden on home page and they will appear when you click on an individual post link !!
It worked good for me. This is relatively new from me and if there are any bugs do let me know.

Tuesday, 23 February 2016

How to Remove Showing Posts With Label in Blogger


For any default Blogger layout, the "Showing posts with label" message shows up above the posts each time you click on a label link. As it's a pretty useless and annoying message, many people like to have it removed. If that is your wish, just follow the tutorial below:

Removing "Showing post with label...show all posts"

Step 1. Go to Dashboard - Template - Edit HTML (if necessary, click on Proceed button)


Step 2. Click anywhere inside the template code, then search - using CTRL+F - this code:
<b:includable id='status-message'>
After you found it, click on the sideways arrow next to it, to expand the rest of the code.

Screenshot:

Step 3. Below is this code that you need to remove - along with the first one, as well:
     <b:includable id='status-message'>
      <b:if cond='data:navMessage'>
      <div class='status-msg-wrap'>
        <div class='status-msg-body'>
          <data:navMessage/>
        </div>
        <div class='status-msg-border'>
          <div class='status-msg-bg'>
            <div class='status-msg-hidden'><data:navMessage/></div>
          </div>
        </div>
      </div>
      <div style='clear: both;'/>
      </b:if>
    </b:includable>

Screenshot 

 Step 4. Replace it with this one:
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>

Step 5. Save the template. Now view your blog and click on some label....there should be no box anymore.