Tampilkan postingan dengan label Blogger Tutorials. Tampilkan semua postingan
Tampilkan postingan dengan label Blogger Tutorials. Tampilkan semua postingan

Selasa, 17 Maret 2015

5 Examples To Customize Blockquote Style In Blogger And WordPress

Customize Blockquotes Style In Blogger And WordPress

Blockquotes are usually used to indicate the quotation of a large section of text from external sources or highlight someone's quotes, thoughts in blog article.

Now day's every blogger started to using it on their blog to make blog article stand out and grab the reader’s attention.

Usually all blogging platform has a default styling for Blockquotes, but we should modify a default styling with something in relevance with your theme/template. So, this tutorial will show you how to customize blockquote style in Blogger and WordPress. along with it I'll present 10 stylish examples of customized blockquotes styles for your blog using CSS.

We'll be using different pseudo-elements like   :before :after   for creating a unique look for 5 examples. 

Many bloggers have a curiosity to know Is there an advantage or impact for SEO of blockquotes?

No! I don't think so, there are many probloggers uses blockquote on their blog and I haven't seen any example that tells me it can heart SEO. but it actually help you to rank well on Google. What do you say about it?

How To Customize Blockquote Style In Blogger/Blogspot:


To add customized blockquote style in blogger just navigate to Blogger Dashboard >> Template >> Edit HTML and Search for </head>
 
Now choose one of the styles suggested below and copy the CSS code and paste it before </head> tag.
Done! Save your template!

Now whenever you want to add blockquote style in your blog post just copy that text which you want to appear as a blockquote and hit icon as shown in below screenshot:

Blogger Blockquote

 

How To Customize Blockquote Style In WordPress Themes:


It's quite simple to add blockquote style in WordPress themes, you need to add the following codes to style.css or custom.css file of your theme. You can do this with another way just go to Appearance » Editor in your WordPress admin or edit.

Now, pick out on of the styles suggested below and design your blog/website for a better user interface.

wordpress blockquote

 

#BlockQuote Style 1: Simple

 

 In this example I have used Unicode for left double quote. you can increase the size of quotation mark just edit  font-size:4em;  with you size.

blockquote

BlockQuote Style 1 For Blogger:


<style>
.post blockquote {
background:#f9f9f9;
border-left:6px solid #ccc;
font-family: Georgia, serif;
margin:1.5em 10px;
padding:.5em 10px;
quotes:"\201C""\201D""\2018""\2019";
}
.post blockquote:before {
color:#ccc;
content:open-quote;
font-family: cambria, Georgia;
font-size:4em;
line-height:.1em;
margin-right:.25em;
vertical-align:-.4em;
}
.post blockquote p {
display:inline;
}
.post blockquote cite {
color: #999999;
font-size: 14px;
display: block;
margin-top: 10px;
}
</style>

BlockQuote Style 1 For WordPress:

    blockquote {
    background:#f9f9f9;
    border-left:6px solid #ccc;
    font-family: Georgia, serif;
    margin:1.5em 10px;
    padding:.5em 10px;
    quotes:"\201C""\201D""\2018""\2019";
    }
    blockquote:before {
    color:#ccc;
    content:open-quote;
    font-family: cambria, Georgia;
    font-size:4em;
    line-height:.1em;
    margin-right:.25em;
    vertical-align:-.4em;
    }
    blockquote p {
    display:inline;
    }
    blockquote cite {
    color: #999999;
    font-size: 14px;
    display: block;
    margin-top: 10px;
    }

#BlockQuote Style 2: Hover Effect


This was my favorite style, I found it on codepen, In this example you can see mouse hover effect which is looking really elegant.

Blockquote With Hover Effect
  

BlockQuote Style 2 For Blogger:


   <style>
   .post blockquote {
    text-align:left;
    font: 16px/24px Arial, sans-serif;
    color: #555;
    padding: 0.5em 10px;
    margin: 1.5em 10px;
    }
    .post blockquote:before {
    content: open-quote;
    font-size: 24pt;
    text-align: center;
    line-height: 42px;
    color: #fff;
    background: #ddd;
    float: left;
    position: relative;
    border-radius: 25px;
    margin-right: 0.5em;
    vertical-align: -0.4em;

    display: block;
     height: 25px;
     width: 25px;
    }
    .post blockquote:after {
    content: close-quote;
    font-size: 24pt;
    text-align: center;
    line-height: 42px;
    color: #fff;
    background: #ddd;
    float: right;
    position: relative;
    border-radius: 25px;
    margin-right: 1em;
    vertical-align: -0.5em;

    display: block; 

    height: 25px; 

    width: 25px;
    }
    .post blockquote:hover:after, blockquote:hover:before {
    background-color: #555;
    transition: all 350ms;
    -o-transition: all 350ms;
    -moz-transition: all 350ms;
    -webkit-transition: all 350ms;
    }
    </style>

BlockQuote Style 2 For WordPress:

 

blockquote {
text-align:left;
font: 16px/24px Arial, sans-serif;
color: #555;
padding: 0.5em 10px;
margin: 1.5em 10px;
}
blockquote:before {
content: open-quote;
font-size: 24pt;
text-align: center;
line-height: 42px;
color: #fff;
background: #ddd;
float: left;
position: relative;
border-radius: 25px;
margin-right: 0.5em;
vertical-align: -0.4em;
display: block;
height: 25px;
width: 25px;
}
blockquote:after {
content: close-quote;
font-size: 24pt;
text-align: center;
line-height: 42px;
color: #fff;
background: #ddd;
float: right;
position: relative;
border-radius: 25px;
margin-right: 1em;
vertical-align: -0.5em;
display: block;
height: 25px;
width: 25px;
}
blockquote:hover:after, blockquote:hover:before {
background-color: #555;
transition: all 350ms;
-o-transition: all 350ms;
-moz-transition: all 350ms;
-webkit-transition: all 350ms;


#BlockQuote Style 3: Using Dashed Border And Background Quote Image

 

In this example I have added dashed border around blockquote, Image for double quote and I have used Muli font from Google web fonts library. 

blockquote styling with dashed border

 

BlockQuote Style 3 For Blogger:


<style>
.post blockquote {
@import url(http://fonts.googleapis.com/css?family=Muli);
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs4_llGyTXbgmIqTSvr-k1d6h410QDEypF4LOiFl09MgO6lj7-pTO4270xzeutd-JXmDbDIeE_h6lIqbU7JEHZeCDrpJp1kvIHxwIriWal1POGlSR5AbPJP98k3asx0iCVEtwn6WgAEA7a/h120/blockquote.png) no-repeat;
border: dashed 2px #ccc;
color: #333;
font-family: muli;
margin: 30px;
padding: 20px 30px 30px 40px;  

</style>

BlockQuote Style 3 For WordPress:


blockquote {
@import url(http://fonts.googleapis.com/css?family=Muli);
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs4_llGyTXbgmIqTSvr-k1d6h410QDEypF4LOiFl09MgO6lj7-pTO4270xzeutd-JXmDbDIeE_h6lIqbU7JEHZeCDrpJp1kvIHxwIriWal1POGlSR5AbPJP98k3asx0iCVEtwn6WgAEA7a/h120/blockquote.png) no-repeat;
border: dashed 2px #ccc;
color: #333;
font-family: muli;
margin: 30px;
padding: 20px 30px 30px 40px;  

 

#BlockQuote Style 4:

 

Example 4 will have cool circle around quotation mark. 
 
blockquote

 


BlockQuote Style 4 For Blogger:

 

<style>
.post blockquote{
font-family: Georgia, Times, "Times New Roman", serif;
font-size: 16px;
border-top: solid 2px #dddddd;
border-left: solid 2px #dddddd;
border-right: solid 2px #dddddd;
border-bottom: solid 2px #dddddd;
margin: 1em 0px;
padding: 1em 1em;
font-family: Georgia, Times, "Times New Roman", serif;
font-style: italic;
font-size: 1em;
min-height: 60px;
}
.post blockquote:before {
display: block;
float: left;
content: "\201C";
font-size: 100px;
margin-right: 10px;
color: #fff;
background-color: #03C9A9;
padding: 15px 12px 5px 8px;
width: 50px;
height: 50px;
line-height: 90px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.post blockquote cite {
position: relative;
display: block;
text-align: right;
margin-top: 5px;
color: #999;
}
</style>

BlockQuote Style 4 For WordPress:


blockquote{
font-family: Georgia, Times, "Times New Roman", serif;
font-size: 16px;
border-top: solid 2px #dddddd;
border-left: solid 2px #dddddd;
border-right: solid 2px #dddddd;
border-bottom: solid 2px #dddddd;
margin: 1em 0px;
padding: 1em 1em;
font-family: Georgia, Times, "Times New Roman", serif;
font-style: italic;
font-size: 1em;
min-height: 60px;
}
blockquote:before {
display: block;
float: left;
content: "\201C";
font-size: 100px;
margin-right: 10px;
color: #fff;
background-color: #03C9A9;
padding: 15px 12px 5px 8px;
width: 50px;
height: 50px;
line-height: 90px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
blockquote cite {
position: relative;
display: block;
text-align: right;
margin-top: 5px;
color: #999;
}

#BlockQuote Style 5:


This was an awesome blockquote styleI found on codepen


awesome blockquotes


BlockQuote Style 5 For Blogger:


<style>
.post blockquote{
display:block;
background: #fff;
padding: 15px 20px 15px 45px;
margin: 0 0 20px;
position: relative;
font-family: Georgia, serif;
font-size: 16px;
line-height: 1.2;
color: #666;
text-align: justify; 
border-left: 15px solid #c76c0c;
border-right: 2px solid #c76c0c;
-moz-box-shadow: 2px 2px 15px #ccc;
-webkit-box-shadow: 2px 2px 15px #ccc;
box-shadow: 2px 2px 15px #ccc;
}
.post blockquote::before{
content: "\201C"; /*Unicode for Left Double Quotes*/
font-family: Georgia, serif;
font-size: 60px;
font-weight: bold;
color: #999; 
position: absolute;
left: 10px;
top:5px;
}
.post blockquote::after{
content: "";
}
.post blockquote a{
text-decoration: none;
background: #eee;
cursor: pointer;
padding: 0 3px;
color: #c76c0c;
}
.post blockquote a:hover{
color: #666;
}
.post blockquote em{
font-style: italic;
}
</style>  

BlockQuote Style 5 For WordPress:


blockquote{
display:block;
background: #fff;
padding: 15px 20px 15px 45px;
margin: 0 0 20px;
position: relative;
font-family: Georgia, serif;
font-size: 16px;
line-height: 1.2;
color: #666;
text-align: justify; 
border-left: 15px solid #c76c0c;
border-right: 2px solid #c76c0c;
-moz-box-shadow: 2px 2px 15px #ccc;
-webkit-box-shadow: 2px 2px 15px #ccc;
box-shadow: 2px 2px 15px #ccc;
}
blockquote::before{
content: "\201C"; /*Unicode for Left Double Quotes*/
font-family: Georgia, serif;
font-size: 60px;
font-weight: bold;
color: #999; 
position: absolute;
left: 10px;
top:5px;
}
blockquote::after{
content: "";
}
blockquote a{
text-decoration: none;
background: #eee;
cursor: pointer;
padding: 0 3px;
color: #c76c0c;
}
blockquote a:hover{
color: #666;
}
blockquote em{
font-style: italic;
}

Final Words!

 

So, this was the complete tutorial on how to customize blockquotes style in Blogger and WordPress. and I hope that you found it helpful and I’m sure it will benefit you a lot.

If you have any query's, or if I missed anything in this article please let me know, I would love to hear from you :)

Now tell me which is your favorite blockquote style? 

Selasa, 03 Maret 2015

How To Make Blogger Template SEO Friendly

Blogger is most popular blogging platform hosted by Google. if you just want to create a blog, you can do so far free through Blogger.com and if you want to host blog on your own server with custom domain name, you can do so far under $50 per year.

Hoverer, Blogger is more SEO friendly blogging platform as compared to WordPress. but you can see, default blogger templates are developed many years ago and still not updated.

when I started my first blog on blogger I made biggest mistake that I used many templates on that blog without knowing template is SEO friendly or not. because I am beginner in blogging world.

Make Blogger Template SEO Friendly

There are several free blogger templates available on internet to download, but we must choose SEO friendly and attractive blog template. but many free blogger templates are not SEO friendly. So we should make some changes in blogger template to make it more SEO friendly.

Recommended: How To Create A Blog On Blogger Blogspot : Complete Guide For Beginner 

Today I am going to share tutorial on how to make blogger template SEO friendly. this tutorial will help you to make your blogger template fully SEO optimized.

 

How To Make Blogger Template SEO Friendly


#1. Show Post Title Before Blog Title In Google Search:


The first thing to find in custom template is the structure of the title tag, because the Title tag is the most important SEO factor of blog.

The question, such as whether it's a good title tag?

The default template of blogger has the title structure more or less, see below image as a example:

how Post Title Before Blog Title

Google shows only 65 characters of the title in search results. By default, in blogger, blog title shows before post title. This can affect on SEO ranking because post titles which have the main keywords got cut off because of the characters limit in Google search results.

To make Title tag SEO friendly find the following code in your template:

 Note:  While making any changes in blogger template, mistakes might be made. so backup your template.

<title><data:blog.pageTitle/></title>

Now replace that code with following code:

<b:if cond='data:blog.url == data:blog.homepageUrl'><title><data:blog.title/></title></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><title><data:blog.pageName/> | <data:blog.title/></title></b:if>
<b:if cond='data:blog.pageType == &quot;archive&quot;'><title>Archive for <data:blog.pageName/></title></b:if>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'><title><data:blog.pageName/></title></b:if>
<b:if cond='data:blog.pageType == &quot;index&quot;'><b:if cond='data:blog.searchLabel'><title><data:blog.title/> - <data:blog.pageName/></title></b:if></b:if>
<b:if cond='data:blog.pageType == &quot;error_page&quot;'><title>Page Not Found</title></b:if>
<b:if cond='data:blog.pageType == &quot;index&quot;'><b:if cond='data:blog.url != data:blog.homepageUrl'><title><data:blog.pageTitle/> - All Post</title></b:if></b:if>

 Note:   If you are using custom blogger template, the structure of title tag has been modified, so it is better to be left it alone.

#2. Meta Description & Keyword Tags:


Another important SEO factor is meta description and keyword tag. If you ignore it you may loss huge amount of traffic from search engines, so just add proper meta description and keyword tags in your blogger template to make it more SEO friendly.

To add meta description and keyword tag in blogger template:

Find For <head> and Paste The Following Code Below <head> tag.

<meta content='Add your blog description here' name='description'/>
<meta content='Add your keywords here' name='keywords'/>

Replace Add your blog description here With Your Description (maximum 150 characters) and Add your keywords here (maximum 150 characters)With Your Keywords.

#3. Heading Tags:


There are many kinds of heading tags, from H1, H2, H3, to H6, but not all important heading tags existence, H1 tags is one of the most important. as far as I know there are three heading tags are quite influential role against on page SEO. The first is the H1 tag as described above and the next is the H2 and H3 tags.

H1 tags are generally used in the title of the blog, however much some blogspot templates that have been modified to dynamically perform the H1 tag. When the H1 tag located on the homepage of the blog title, whereas when it is on the page posts H1 tag located on the post title. The purpose of this modification is to optimize the post title in the Google search results.

I think the H2 and H3 tags role is not important as compared to H1 tag, but it would be nice if my friend use it to put the keywords in the tags so that the maximum.

Search for the below piece of code in your template:

<h3 class = "post-title entry-title 'itemprop =' name '> 

 Note:   If you find above code two times then go with the second result.

Now search for the following or exact looking code in your template.

<a expr:name='data:post.id'/>
<b: if cond = 'data: the post.title'>
<h3 class = "post-title entry-title 'itemprop =' name '>
<b: if cond = 'data: the post.link'>
<a expr:href='data:post.link'> <data: post.title /> </a>
<b: else />
<b: if cond = 'data: the post.url'>
<b: if cond = 'data: the blog.url! = Data: post.url'>
<a expr:href='data:post.url'> <data: post.title /> </a>
<b: else />
<data: post.title />
</ b: if>
<b: else />
<data: post.title />
</ b: if>
</ b: if>
</ h3>
</ b: if>

Replace above piece of code with following code.

<b: if cond = 'data: the blog.pageType! = & quot; index & quot;'>
<a expr:name='data:post.id'/>
<b: if cond = 'data: the post.title'>
<h1 class = "post-title entry-title 'itemprop =' name '>
<b: if cond = 'data: the post.link'>
<a expr:href='data:post.link'> <data: post.title /> </a>
<b: else />
<b: if cond = 'data: the post.url'>
<b: if cond = 'data: the blog.url! = Data: post.url'>
<a expr:href='data:post.url'> <data: post.title /> </a>
<b: else />
<data: post.title />
</ b: if>
<b: else />
<data: post.title />
</ b: if>
</ b: if>
</ h1>
</ b: if>
<b: else />
<a expr:name='data:post.id'/>
<b: if cond = 'data: the post.title'>
<h2 class = "post-title entry-title 'itemprop =' name '>
<b: if cond = 'data: the post.link'>
<a expr:href='data:post.link'> <data: post.title /> </a>
<b: else />
<b: if cond = 'data: the post.url'>
<b: if cond = 'data: the blog.url! = Data: post.url'>
<a expr:href='data:post.url'> <data: post.title /> </a>
<b: else />
<data: post.title />
</ b: if>
<b: else />
<data: post.title />
</ b: if>
</ b: if>
</ h2>
</ b: if>
</ b: if>

Not done yet! Now search and replace all h3.post-title with h1.post-title

All done! Now save your template, your template is optimized for search engines.

Conclusion


I hope this tutorial will help you to optimize your blogger template and I think all of the above is enough to make your blogger template SEO friendly. after making all these changes I am sure you will get good amount of traffic from search engines

If you still confuse then drop your question in comment box, I will come up with new article till then subscribe our newsletter to get next post directly to your inbox :).

Selasa, 27 Januari 2015

How To Add Custom Robots.txt File In Blogger/Blogspot

 
Maybe you've heard about the term robots.txt. What is robots.txt? is it necessary in the settings? what if I leave it alone? There are probably many other questions you have, especially if you are newbie blogger.

To better understand the meaning of robots.txt, to make it more understandable, I have made this tutorial.

If you want to get your blog indexed and crawl your pages fast then you should add this custom robots.txt file in your blogger blog. as well as it's a part of search engine optimization so you must be aware of the terms. 

Also Read:

How It Works?


Robots.txt is a command for the search engine robots to explore or browse a pages of our blog. Robots.txt is arguably filter our blog from search engines. 

Let's say robot wants to visits a Webpage URL, example, http://www.example.com/about.html. Before it does so, it will check for http://www.example.com/robots.txt, and then it will access the particular webpage.

All the blogs already have a robots.txt file given by blogger/blogspot. By default robots.txt on blogs like this:
User-agent: Mediapartners-Google
Disallow:
User-agent: *
Disallow: /search
Allow: /
Sitemap: http://yourblogname.com/atom.xml?redirect=false&start-index=1&max-results=500
User-agent: Mediapartners-GoogleDisallow: User-agent: *Disallow: /searchAllow: / Sitemap: http://namablog/feeds/posts/default?orderby=UPDATED - See more at: http://blog.kangismet.net/2013/10/cara-setting-robotstxt-di-blogger.html#sthash.aSTFQuhf.dpuf

 

What Is The Meaning Of Above Codes?

 

User-agent: Mediapartners-Google
This command tells your blog to allow Adsense bots to crawl your blog. If you’re not using Google Adsense on your blog then simply remove this line.
 
Disallow:
This cammand prevents Search Engine bots from crawling pages on your blog.

User-agent: *
All Robot Search Engines / Search engine

Disallow: / search
Not allowed to crawl the search folder, like .... / search / label and ... search / search? Updated ... here lable is not inserted to search
because label is not a URL who estate towards one specific page. 

Example : 
http://www.shoutersclub.blogspot.com/search/label/SEO
http://www.shoutersclub.blogspot.com/search/SEO
 
Allow: /
This command tells allow all pages to be crawled, except that written on Disallow above. Mark (/) or less.


Sitemap:   
Sitemap: http://yourblogname.com/atom.xml?redirect=false&start-index=1&max-results=500

 

How To Prevent Robot On Certain Pages?

 
To prevent particular page from Google crawling just disallow this page using Disallow command. For example : if I don't want index my about me page in search engines. simply I will paste the code Disallow: /p/about-me.html  right after Disallow: /search.

Code will look like this :

User-agent: Mediapartners-Google
Disallow:
User-agent: *
Disallow: /search
Disallow: /p/about-me.html
Allow: /
Sitemap: http://yourblogname.com/atom.xml?redirect=false&start-index=1&max-results=500 

How To Add Custom Robots.txt File In Blogger ?

 

 Note :  Before adding custom robots.txt file in blogger you should keep one thing in your mind that if you are using robots.txt file incorrectly then your entire blog being ignored by search engines.

Step1
Go to your Blogger Dashboard

Step2
Now go to Settings >> Search Preferences >> Crawlers and indexing >> Custom robots.txt >> Edit >> Yes


how to add custom robots.txt file in blogger

Step3
Now paste your custom robots.txt file code in the box.

Step4
Now click on Save Changes button.

Step5
That's all, You are done! now you can see your robot.txt file. To view the robots.txt fine, please type in browser...

http://yourblogname.com/robots.txt

Custom Robots.txt

It's okay, your blog will still be crawled by search engine robots because as I mentioned before, every blog already possessed default robots.txt.
 


Final Worlds!


So friends! this was the brief tutorial on how to add custom robots.txt file in blogger, if you are a newbie blogger and you have missed the robot.txt then create one here to make your site SEO strong.

 If you still have any quires regarding this article then please let me know, You can leave your question in comment box.

Thanks for reading this tutorial and I’ll see you in the next one. till then Happy Blogging !:)

User-agent: Mediapartners-GoogleDisallow: User-agent: *Disallow: /searchAllow: / Sitemap: http://namablog/feeds/posts/default?orderby=UPDATED - See more at: http://blog.kangismet.net/2013/10/cara-setting-robotstxt-di-blogger.html#sthash.aSTFQuhf.dpuf