Top 10 Tips For Increasing Blog Traffic - 2012

Tuesday, June 19, 2012

Increasing blog's traffic is every blogger's aim. Whether for reaching out to a larger audience, or generating more income through a blog, or to create awareness about a particular topic, he needs more traffic on his blog for his efforts to be of any worth. You might spend all the time and hard work you want on your blog. But unless you don't have a decent traffic, all your struggles will be in vain. Hence, the more traffic, the better.

Are you waking up daily, eager to check out your blog's traffic, only to find out that there has been little or no improvement in your stats whatsoever? There must be something you are doing wrong, or not doing at all! Here is a list of things you can do to increase your blog's traffic. Or rather, here is a checklist to help you ensure that you are doing all the necessary things correctly.

Post frequency and Timings
Post frequency and timings are extremely important for your blog's rankings. First of all, search engines such as Google like to see fresh content on websites. If your blog is struggling for traffic, then you must publish at least one post daily. The more frequently you publish posts, the more quickly your rankings and traffic grows. For example, our other blog SEM had a million+ Alexa ranking when it started! We have been publishing two posts daily for the first two months. And in those two months, the Alexa improved dramatically and it now stands at around 50,000!

post timings
Post timings are important as well. Not only do you need to be consistent in your timings, you should also choose a time that's globally significant. Choose a time windows that best suits your majority audience. Our publish timings are 12 01 am each day! Not only does this suits our audience, it also is consistent timing. Once you choose a time, stick to it! Not publishing posts on your fixed time can drop your Alexa! This is what happened to me at SEM once or twice. I made a mistake in scheduling my post, and it didn't publish at the set time. As a result, the Alexa didn't improve, despite the two brand new posts published that day!

Build Backlinks

Backlinks are very important for a blog, but only the quality ones. Backlinks refer to in-bound links to your blog from other sites. Backlinks give you instant traffic from other sites. But be careful about them. Trust me, you don't want cheap backlinks to your blog. They will hurt your rank instead of improving it. Never buy a backlink package such as "1,000 backlinks for $9.99" etc. Try to build genuine backlinks on sites with a decent rank.
High ranking backlinks

How to build backlinks? Well there are many ways. Participate in forum discussions, and recommend some content on your blog to others. Also add your blog's URL to your signatures. This will leave a link to your blog each time you post a comment on a forum. Another way of increasing backlinks is by guest posting on other blogs. Write for other blogs in return for backlinks.
Advertise!
If you've got some money on hand, then why not advertise your website? Advertising your blog is one of the best ways of increasing traffic, since it gives you instant exposure. Ads on sites relating to your niche can give you much more benefits as compared to other sites, since the traffic on similar niche sites is interested in exactly the kind of stuff you, or other similar sites have.
Interact!
Interacting with your audience is the key to retaining and increasing your traffic. Adding stuff like polls, questions, surveys and forums can increase your interactivity. Also, use such a writing style that addresses the readers directly. Be casual and friendly, and don't be (too) formal.
Write Articles
This method is highly effective. Not only does it give you immediate traffic, it also gives you  quality backlinks that improve your traffic in the long run. Write an article on a topic relating to your website, and submit it to popular article directories, such as Squidoo, Hubpages, Ezine Articles etc. For example, say you have a blog about affiliate marketing. You can write an article on affiliate marketing tips, and then mention your own blog in that article. Then submit that article to popular directories for traffic and backlinks.

write articles

One thing though. Try not to write on sites that give no-follow links. Such sites include eHow, articlesbase, examiner etc. Sites like Squidoo and Ezine Articles don't give no-follow links, which is preferable.
Discuss Recent Trends

Discussing hot topics can get you in search engines' good favour. Google likes to see the latest content. Not only that, people also want to see latest content. Discussing latest topics gives a good impression of your blog being up to date. Not only that, it draws a lot of traffic, and indeed contributes a lot towards this very blog's traffic.

Guest Blogging


Encourage guest posting on your blog. There are many advantages of doing that. First of all, it will increase your post frequency, which, as we already discussed is a good thing. It will also reduce your workload and effort. Secondly, it will increase your traffic slightly, since fans from the guest's blog will want to read what their writer has written on another blog. Be careful about this though. You have to give out backlinks to the guests' blogs. Too many out going links without a nofollow attribute and your rank will start to drop!

Guest blogging

Apart from inviting people to write for you, you can write for others as well. This will get you a backlink. Write multiple posts on quality blogs, and you will see your backlinks increase and your rankings soar! This is one of the best way of building genuine backlinks

Apply SEO techniques


Search Engine Optimization is so vast a topic that entire books have been written on it. But you don't need to read books. All you need do is learn some basic SEO techniques, and apply them to your blog. SEO is extremely important if you want search engines to find your blog easily.

You should be familiar with the most basic SEO methods. Keep keywords in mind while writing titles and introductory paragraphs. Also write two or three line meta descriptions for your posts. If you are using WordPress, then you'll need to add meta keywords as well. Complete these basic steps and you're done with the basic SEO, although this is, by no means, the end of it.

SEO

Also, learn how to generate and submit a sitemap for your blog to major search engines. This is an important SEO step that every blogger needs to take to ensure that all of his posts and pages are indexed properly.
Use Social Media
You'll be surprised at how useful social media can be. Make public profiles on popular networks such as Facebook, Twitter and Google+ etc. These will help you build a fan base of your blog. Social Media is also great in the sense that it provides you a much greater exposure through your fans than you could get on your own. So share your new blog posts on social media not only to gain extra traffic, but also to retain your existing traffic.

Use Q&A Websites


Q&A websites can be a great source of traffic for blogs. Get active on popular Q&A sites, such as Yahoo! Answers, Wiki Answers etc. Search for questions related to your area of expertise, and answer them. Then provide your website link as a source. For example, if you are an affiliate marketer, answer some questions regarding the field, and answer them well. Then give the link to your blog. You can also do this on popular forums such as Blogger Forum etc.

Q&A Websites
These were some of the tips for increasing blog traffic. These are, by no means, the only ways. There are literally thousands of ways you can increase your blog traffic. But hopefully, these basic tips will guide you in building your basic audience.

How Google Penguin Update Will Affect Your Blog ?

Sunday, June 17, 2012

 



In April, Google launched the Penguin algorithm aimed to detecting and filtering out websites and blogs classified as ‘spam’ from its search results. A month later, Google released an update to the Penguin algorithm to identify and blacklist websites which violate its quality guidelines.
While implementing Search Engine Optimization (SEO) is a standard practice for websites and blogs, the Penguin update is aimed at scrutinizing over optimization and spamming. As a blog owner, if you’ve adopted over-optimization techniques, there’s a good chance that the Penguin update has already hit your blog.


 

Let’s try and understand what is the Google Penguin update and how does it affect you and your blog?



What is Penguin Update

Simply put, the Penguin update aims at identifying sites and blogs which use malpractices such as keyword stuffing and link spamming. The idea is to encourage bloggers to adopt white hat SEO techniques in order to build high-quality blogs with appealing visuals and stellar content.

At the same time, the Penguin update is likely to catch you in a net if you adopt black hat SEO techniques to promote your blog. Google says the Penguin update is an effort to detect ‘stuff in the middle’.

How does it affect you?


In general, if you follow Google’s quality guidelines, the Penguin update should cause no harm to your blog. However, if you actively pursue any of the following practices, there’s a good chance that your blog will be classified as ‘Spam’ by Penguin sooner than later.

  • Linking to unsafe & dangerous sites
  • Linking to low quality blogs
  • Backlinking to sources offering poor quality content
  • Linking to spam comments

In general, you should always link to trusted sites and blogs offering high-quality content.

Penguin Update classified my blog as Spam, what should I do?

Google admits that the Penguin update isn’t perfect and there may false positives. If you believe your blog has been unduly penalized by the Penguin update, Google recommends you fill this form and submit a spam report. Make sure to put the word ‘Penguin’ in your report. Once Google receives this report, they will scrutinize your blog/ site and provide you appropriate feedback.

Google recommends you use the above form only in case you’ve received a warning about the Penguin update’s implications for your blog.

Lessons from Penguin Update


Even if your blog hasn’t been affected the Penguin update, there are good lessons to be learnt. For a start, the Penguin update offers an insight that the SEO landscape is evolving and you need to keep up with the advancements to make the most of this opportunity. Secondly, it serves as a reminder that you MUST adhere to Google’s quality guidelines or else risk your and your blog’s future.

Has your blog been affected by the Google Penguin update? Do you think the Penguin Update is a step in the right direction by Google to streamline SEO? Please share your opinion by leaving a comment.

What’s better than Apple’s Siri? Android’s Tap & Speak, that’s what.

It might be old news to some of you but for me, since I’m still discovering Android’s awesomeness, Vlingo’s Tap & Speak is a Siri killer. I wish Vlingo would port Tap & Speak to the iPhone. I’d pay $4.99 for it. I might pay more. I’d pay something to have a productive App like that at my disposal. Tap & Speak has a very cool ‘Driving Mode’ which allows you to use your phone for calling and texting without having to wreck your car to do it. Hands down (pardon the pun), Tap & Speak is way better than Siri.

Watching my wife get frustrated enough with Siri to fling her new iPhone 4S across the room and yell, “Siri is useless!” is enough to make me realize that I don’t need or want Siri. I have an iPhone 4, so I don’t have a choice but even if I did, I wouldn’t use it. I’m sure some people find it useful and helpful but I’m not one of them. Neither is my wife. Our 18-year-old son doesn’t use Siri on his 4S either. I believe he colorfully compared Siri’s usefulness to the operational nature of a vacuum cleaner.

I don’t think Siri is necessarily bad but I do think it requires some training and practice but there are no help files nor is there a website that helps train users how to better use it. And, before you give me that whole, “Apple is intuitive” thing, let me say that Siri is not your typical intuitive Apple application nor is it intuitive.

Tap & Speak gives me examples and a step-by-step how-to on first use. I like that. I also like that I can tap or just say, “Hi Galaxy” to begin a new conversation. No, Tap & Speak isn’t perfect but it’s a level above Siri. I can actually be productive with Tap & Speak. Siri is cute but virtually useless for me–the few times I’ve used it, that is.

Don’t get me wrong. I’m a big Apple device fan. In fact, if you’ve read this blog from the beginning, I didn’t want an Android device. At all. It was thrust upon me. But, the longer I use it, the better I like it. It has some really cool features that I wish my iPhone 4 had. One is the ability to connect to the device’s lower level self. With my Android phone, I can SSH to it from another computer or open a console to the OS from the device itself.

OK, not everyone needs to do that but I rather like having that feature. I don’t want to even think of jailbreaking a device just to get some “should be included from the factory” features.

I’m especially excited by Vlingo’s merger with Nuance. If you don’t know, Nuance is the company that makes Dragon Naturally Speaking software, which is the best speech recognition software on the market. I foresee a truly intelligent conversational device control coming soon to just about everything near you.

With the blend of those two intelligent speech recognition software companies on the same team, I think we’ll soon be able to actively navigate to addresses in our cars, make and receive phone calls, send and receive text messages and do all sorts of SciFi-type things using voice recognition. With superior voice recognition and communications plus Google Car type self-driving cars, even the visually impaired will be able to drive a car. These are exciting times.

You might find it somewhat of a stretch from making a phone call to driving a car but that’s just the way my mind works. Too bad I don’t get paid to come up with ideas and solutions for new products. I’d really like that gig. Heck, I came up with the idea of a self-driving car when I was a kid. I knew it could be done and I knew how to do it but convincing anyone to listen was the hard part. Now, with Siri and and Tap & Speak, I have a built-in audience for my ideas, my jokes and my disruptive dialog.
The best part is that, so far unlike their human counterparts, they just have to listen.

3 Free domain name websites : Advantages and Disadvantages

Friday, June 15, 2012

It is a well known fact that a Domain Name adds a profession touch to your website/brand. But, it is sometimes a case of financial crisis or some other problem that a web publisher is not able to purchase a Generic Top-Level Domain for his brand or Website in general.
In such cases a need for free Domain names is required. So, I am going to tell you about three Services which allow you to register a Domain name for free. I mentioned above that these services will allow you to register a Domain name for free, but another bonus is that they will also allow you to manage your DNS entries like CNAME, A, MX, NS records for free! Now I will describe the benefits and Demerits of each of these service for you to decide which one is the Best suited for you.


CO.CC Advantages:
  • Zero Renewal fees for Personal Domain names
  • Allows registrations of two domain names for free
  • Web forwarding facility available
  • If you donate to co.cc, you can register 100 more free domains in your account
  • You can earn money by referrals
CO.CC Disadvantages:
  • If you place Ads on the Domain name, then you have to pay 3$ as renewal fee of the Domain name every year. If you don’t pay the required amount then your Domain name will be deleted
  • The domain name will be suspended without notice if it contains any illegal/ spam/ adult material
  • Not all the Domain names are free to register. Some domain names need you to pay a small amount to register
  • You need to Set-Up your Domain name before 48 hours of Registering, else it will be deleted
CO.TV Advantages:
  • Allows registrations of three domain names for free
  • Web Forwarding Facility available
  • Site Builder functionality available
CO.TV Disadvantages:
  • Domain name is registered only for one Year. You need to re-register it after one-year.
  • Registering a Premium Domain name costs you 199$ flat.[Premium domain names are usually keywords which are short, can easily be remembered, has multiple meanings or generic quality names]
  • The domain name will be suspended if any violent/ humiliating/ illegal/ spam/ ad*lt material is hosted on it
  • You need to Set-Up your Domain name before 24 hours of Registering, else it will be deleted
  • No referral system for earning through affiliates
  • They can Anytime convert any free services to paid services, remove a part or all of the services temporarily or permanently
UNI.CC Advantages:
  • Domain name is registered for Life-Time. Forget about renewals!
UNI.CC Disadvantages:
  • Only one domain name can be registered per IP Address
  • UNI.CC might serve Advertisements on your website (in some cases)
  • Your Domain name will be deleted without notice if you don’t get more than 10 Hits in 3 months duration
  • Domain name is deleted if any defamatory, inaccurate, abusive, obscene, infringing, or threatening content is hosted on it
  • Members need to pay a small maintenance fee to keep their sites free of banner Ads
  • You cannot manage CNAME entries in your DNS settings
Even though there are many more services like these ones, most of them are spam sites. Keep in mind that these services allow you to Manage your Domain names completely by giving access to DNS setting and these services are completely different from URL redirection services.

How To Get Free .com Domain Under Yourname.com



Recently Google have launched Wisconsin Get Your Business Online Program . Wisconsin Get Your Business Online is designed to make it easy, free and fast for any business to get online. Any small business program with small and limited resources and products can now get their business online with the world within few minutes for free. Yes you got it right , you are going to bring your business online for free.
You don’t have to pay anything for this. It is provided by Google. Google partnered with Intuit Company, the Association of Small Business Development Centers, SCORE, and Meetup and they are hosting for free to help small business owners to to get started with their own basic .com website. The project is launched as WisconsinGetOnline (Wisconsin Get Your Business Online). This is a free program from Google. You can get signup for it from any country and get your business online easily and fast.
They are providing following things with free.com domain :
  • Free, easy-to-build Intuit website
  • Free customized domain name
  • Free web hosting for one year
  • Free online tools and training
  • A free customized domain name and hosting
  • $75 in Google AdWords credit
After reading about information and the features provided by it , you might be interested to get your own free.com domain. So now I am going to show you how to get your .com domain for free.  Let’s begin the process.

Easy way to get Free .com Domain name registration for 1 year :

  • At first you need to Go to Wisconsin homepage via this link and there you need to click on GET YOUR FREE WEBSITE button.
  • Now you need to Sign up for your free Intuit website. Then you will get following screen.
Free Intuit Website

  • If you have Google account then you can sign in with it else sign up for a Google account and then sign in with that account.
  • Allow access to it and then click on Continue button.
  • Next you need to you intuit websites password. Fill the details and accept term and conditions and click on continue button.
Domain for Free


  • Then you will be redirected to Intuit Website to register a free .com domain name. Click continue as shown in the above screenshot. Then you will get the following screen.
Getting started



It contains three steps. Select first one i.e – Choose a domain (www.yourname.com) for your website. You will get the following screen. If you are not sure, what domain name you should buy, I suggest you to read how to select great domain name for business & 5 domain name suggestion tools.
 Get a Free Domain Name

 Since you are registering a new domain name so , make sure that the domain name you are going to register is available. You can do this by entering your desired domain name under “Get a New Domain” and clicking on Check Availability  button. If it is available then you will be presented with following screen.
 Domain center

Now all you need to do it click on Get Domain button. Then you will be asked to enter your contact information as shown in the belwo screenshot.




domain contact Info

Enter your contact information and click on Save & Continue button. Then you will be ask to review your information. Review it , agree to the terms of service and  click on submit button.  Note : You must uncheck the Yes (Recommended) option for domain privacy because if you check it you have to pay $1 per month.
As soon as you submit it for review you will get a pop up page asking for your Billing Information. They are asking this to protect against fraudulent activities. Though your website and .com domain name are free but they still need your billing information. Enter your address details and debit/credit card information in this page. Now the real problem comes. Many of us don’t have a real debit/credit card, so to solve this problem you need to create a virtual visa credit card. You can create a virtual visa from Entropay.com. Note : You can also use other websites to create virtual visa. If you don’t want to create virtual visa then use the following virtual visa details to fill the payment options and you will be able to purchase your domain for free.
  • Name on card : Jackie Chan
  • Card type : Visa
  • Credit card number : 4067424695632061
  • Expiration date : 12-2012
  • Card security number : 279
 Test Credit Card

Now just enter your virtual visa details in the payment page and click on purchase button. Now you have successfully created your website with a free .com domain name registration. It may take an hour to activate. After it is activated, you can use their website builder to create a new website or just change the name servers by going in the domain manager to use with other webhost.
I hope this tip would help you to save some money and increase your online presence. If you find this post useful, don’t forget to share it on Google plus and Facebook.

Why to choose a SEO Website Design for blogs?


When you give a thought to designing a website for your own website, chances are high that you think of a website with the bells and whistles – wonderful images with flash, viewing audio – the works! But, uncertain to you personally, these factors may very well destroy your enterprise because what shows up appealing on the face is detractive in terms of search results positioning.
In case your website has these factors, it is immediately downgrade to a considerably lower rank even if your unique content is relevant and you’re utilizing leading edge technology.
According to a recent survey, which showed some dreadful results, one out of every ten website designers believes that SEO is not their business. And more seriously, more than 24% of website designers don’t have the idea concerning what SEO is! Before discovering the causes to choose from an SEO friendly website design, it is necessary to know what this is all about.
You notice major search engines engage automated ‘web spiders’ to crawl via web pages. Each of these ‘web spiders’ collect information and facts relating to the website. The data they glean enables them to figure out the relevance of a website for particular keyword phrases. Now, you should understand that these are also automated software that has been hinted to crawl via websites in a certain method. They put the information they gather in a folder. Therefore, when a user requests a keyword, the search engine dips into this folder and displays sites based on relevance. Sites that ‘seem’ more related come out on the top, while those which are not, end up at the bottom.
Despite the fact that design factors alone are not liable for dismal search engine rankings, they also play a necessary role.
It doesn’t matter if you are a professional website designer or perhaps a company owner, it is recommended to know why you must always look for an SEO friendly website design.

Advantages Of Seo Optimized Website Designing : 


  •   A Search Engine Optimized  website design is a great way to take care of traffic form the major search engines. If major search engines are not pleased with your design and layout, you can’t expect more traffic either from referral back link and direct traffic.
  •   Research illustrate that about 45-65% of web traffic to any website comes from major search engines. Thus, a website design that isn’t search engine friendly is washing its hands off this amazing traffic volume.
  •   Usually, an SEO friendly website design is likewise incredibly easy to use. Thus, making sure you use appropriate code of HTML, goal adequate keywords via content and meta tags, employ ALT tags, utilize proper links etc, get the website quick to download and easier for the user.
  •  An SEO friendly website talks good quality webpage design. If you’re a firm with some more standing, like the ones of webpage you have got impacts your company value.
  • Google robots and the other search engine robots can easily crawl your blog if the site is well designed

Add A Comment Bubble Just Next To Blogger Post Titles

Wednesday, June 13, 2012


If you want to show the number of comments just next to your blog post tiles then comment-bubble is a best way to show number of comments to that particular post in a small bubble icon.This little bubble will also increase the number of comments on your blog,because by clicking on the bubble your readers can directly access the comment-form of that post.Also you can add this in two easiest ways,just follow below steps carefully and you will easily add this to your blog.

 

How To Add Comment Bubble Just Next To Post Title?


  1. Go to Blogger Dashboard > Template
  2. Take a backup of your template
  3. Click On Edit HTML
  4. Hit Proceed
  5. Check Expand Widget Templates chechbox.
  6. Find below code in your template

]]></b:skin>


add below code just above it

.comment-bubble {
    float: right;
    width: 48px;
    height: 48px;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvqzmM4p_nl9Asols5qoZMsQED4VoDDAXKwFMpyrv2exNFQpELt4W9tdR0CdAKDmvn6W9700Tdxr0ZY5gVJ0vxvCtZyuUlwpvkiVkme4eJRqLCXIzevh9mEzf9mqQHBb-IC_e8K-k2S2GD/s1600/helperblogger.com-commentbubble.png) no-repeat;
    font-size: 18px;
    float: right;
    margin-top: -15px;
    margin-right: 2px;
    text-align: center;
    position: float;
    text-align: center;
}


Now find for below code in your template

<b:if cond='data:post.link'>


replace it with below piece of code,

<b:if cond='data:post.allowComments'>
<a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:post.numComments/></a>
</b:if>
<b:if cond='data:post.link'>

Now take a preview of your template,if you want to adjust the position of comment bubble then you can change the above CSS values as you need.When you feel that everything is ok then save your template.You can also replace the bubble with your own bubble,just replace the URL of bubble with your own bubble URL.

Add Image Just Next To Blogger Post Titles

In this post we are sharing a cool hack which will add an your own image,favicon or whatever you choose just next to your blog's post titles.You can also add your own profile pic. it will give more personal touch to your blog.To apply this hack you just have to delete and put some code in your template.If you want to see live preview of the hack,then see the image below,

 

Now lets see how to apply this hack,


How To Add Image Just Next To Blogger Post Titles?


I have tried my best to keep this tutorial easy as easy as possible.For better understanding I am dividing this tutorial in three parts,but you just have to follow any one post because it depends upon the tag which you are using as post title.

  • Part 1: Finding the tag which you are using as Post Title
  • Part 2: For those who are using H3 tag as a Post Title
  • Part 2: For those who are using H2 tag as a Post Title


Part 1: Finding the tag which you are using as Post Title


  1. First go to Blogger Dashboard > Template
  2. Download a copy of your template
  3. Click Edit HTML
  4. Hit Proceed
  5. Check Expand Widget Template checkbox
  6. Find below code in your template


1
<h3 class='post-title entry-title'>

Now if you found above code in your template then you are using H3 tag as a post title.Now only follow second part of this tutorial

If you can't find above code then find for this one

1
<h2 class='post-title entry-title'>

If you found above code in your template then you are using H2 tag as a post title.Now only follow third part of this tutorial.

Part 2: For those who are using H3 tag as a Post Title


  1. First go to Blogger Dashboard > Template
  2. Click Edit HTML
  3. Hit Proceed
  4. Check Expand Widget Template checkbox
  5. Find below piece of code in your template


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<b:includable id='post' var='post'>
  <div class='post hentry'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
      <h3 class='post-title entry-title'>
      <b:if cond='data:post.link'>
        <a expr:href='data:post.link'><data:post.title/></a>
      <b:else/>
        <b:if cond='data:post.url'>
          <b:if cond='data: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 it with below code, (be careful while deleting,only replace above exact code)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<b:includable id='post' var='post'>
  <div class='post hentry'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
    <table><tr>
     <td class='ssybyposttitle'>
      <img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcs9PUroUAk4pDg01SYe7zP3Zed4Fhgcq-QkDFOfe9nd7uWWE7nPPkx3T9xkedRHuMBXCKaCaBN_NWBK6ZnRIgm0gB4Nnr-pjfU2BJvwTc7hgxvwYnbUGzIxOJXje2UzdAtT35IUu14lw/s1600/helperblogger-pencil.png'/></td>
     <td><h3 class='post-title entry-title'>
      <b:if cond='data:post.link'>
        <a expr:href='data:post.link'><data:post.title/></a>
      <b:else/>
        <b:if cond='data:post.url'>
          <b:if cond='data: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>
     </td>
    </tr></table>
     <style>
       h3.post-title {
       margin: 0px !important;
       }
     </style>
    </b:if>

Now replace the image URL in above highlighted line with your own image URL (image should be less than 64X64 pixels)

Part 3: For those who are using H2 tag as a Post Title


  1. First go to Blogger Dashboard > Template
  2. Click Edit HTML
  3. Hit Proceed
  4. Check Expand Widget Template checkbox
  5. Find below piece of code in your template


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<b:includable id='post' var='post'>
  <div class='post hentry'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
      <h2 class='post-title entry-title'>
      <b:if cond='data:post.link'>
        <a expr:href='data:post.link'><data:post.title/></a>
      <b:else/>
        <b:if cond='data:post.url'>
          <b:if cond='data: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>

replace it with below piece of code,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<b:includable id='post' var='post'>
  <div class='post hentry'>
    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
    <table><tr>
     <td class='ssybyposttitle'>
      <img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcs9PUroUAk4pDg01SYe7zP3Zed4Fhgcq-QkDFOfe9nd7uWWE7nPPkx3T9xkedRHuMBXCKaCaBN_NWBK6ZnRIgm0gB4Nnr-pjfU2BJvwTc7hgxvwYnbUGzIxOJXje2UzdAtT35IUu14lw/s1600/helperblogger-pencil.png'/></td>
     <td><h2 class='post-title entry-title'>
      <b:if cond='data:post.link'>
        <a expr:href='data:post.link'><data:post.title/></a>
      <b:else/>
        <b:if cond='data:post.url'>
          <b:if cond='data: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>
     </td>
    </tr></table>
     <style>
       h2.post-title {
       margin: 0px !important;
       }
     </style>
    </b:if>

Now replace the image URL in above highlighted line with your own image URL (image should be less than 64X64 pixels)

How to Create a Horizontal Dropdown Menu with HTML, CSS and jQuery

Wednesday, June 6, 2012






Menus play an essential part on the web. They allow users to find their bearings and help them navigate your website. When designing menus, usability is the key.

Beginners often struggle with the basics. In this tutorial I'm going to show you how to create a simple, usable and functional horizontal menu with HTML and CSS. I will also dive a little bit into jQuery to add animations to your menu.





Basics

Let's start with the basic HTML structure of the menu:
1
2
3
4
5
6
7
<ul id="coolMenu">
<li><a href="#">Lorem</a></li>
<li><a href="#">Mauricii</a></li>
<li><a href="#">Periher</a></li>
<li><a href="#">Tyrio</a></li>
<li><a href="#">Quicumque</a></li>
</ul>
A menu consists of an unordered list, and each list item contains a link with the text. Don’t create unnecessary divs. You don’t need any.
To add a sub menu simply nest another unordered list inside the item that's going to have the sub menu, like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<ul id="coolMenu">
    <li><a href="#">Lorem</a></li>
    <li><a href="#">Mauricii</a></li>
    <li>
        <a href="#">Periher</a>
        <ul>
            <li><a href="#">Hellenico</a></li>
            <li><a href="#">Genere</a></li>
            <li><a href="#">Indulgentia</a></li>
        </ul>
    </li>
    <li><a href="#">Tyrio</a></li>
    <li><a href="#">Quicumque</a></li>
</ul>

As you can see, creating the structure is very simple. This is how it should look in your browser at this stage:
Stage 1
There are multiple ways to set up the CSS for a horizontal menu. After many years I found that this is the quickest and cleanest way to do it:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#coolMenu,
#coolMenu ul {
    list-style: none;
}
#coolMenu {
    float: left;
}
#coolMenu > li {
    float: left;
}
#coolMenu li a {
display: block;
    height: 2em;
    line-height: 2em;
    padding: 0 1.5em;
    text-decoration: none;
}
#coolMenu ul {
    position: absolute;
    display: none;
z-index: 999;
}
#coolMenu ul li a {
    width: 80px;
}
#coolMenu li:hover ul {
    display: block;
}
  • I decided to float the whole menu to contain it but you can use overflow hidden or even set a fixed width for the same purpose.
  • It is important to float the list elements rather than the links.
  • The links should be displayed as blocks, otherwise, they won’t behave as expected.
  • Absolute position the submenu and hide it to remove it from the regular flow and make it invisible. Also, set a high z-index to prevent the submenu from showing behind other elements.
  • Set a height for the link elements and the line-height equal to the height to center the text vertically. By specifying a fixed height instead of just using padding you avoid flickering problems with jQuery animations later on.
  • Even though it’s not necessary to set a fixed width for the submenu items, it’s always a good practice. It allows you to style them more consistently later on.
  • Notice that the hover state is set on the list element and not the link.
With all this set, the menu should be already working. Try opening it in your browser and hovering over the third option to show the sub menu.
Stage 2

Improving Usability

This step will cover how to style the menu with some basic CSS to make it more accessible.
1   /* Main menu
2   -------------------------*/
3   #coolMenu {
4   font-family: Arial;
5   font-size: 12px;
6   background: #2f8be8;
7      }
8      #coolMenu > li > a {
9   color: #fff;
10  font-weight: bold;
11    }
12    #coolMenu > li:hover > a {
13    background: #f09d28;
14    color: #000;
15    }
16    /*
17    Submenu
18    ------------------------------------------*/
19    #coolMenu ul {
20    }  
21    #coolMenu ul li a {
22    }
23    #coolMenu ul li:hover a {
24     background: #ffc97c;
25     }



   
 
  


   
   


   
   




   


  


  

Keep in mind this is very basic, and is meant to be just an example. You can style this however you want. The important thing to remember here is, as I mentioned before that the hover states, are styled in the list items and not the links.
This is how the menu looks so far:
Stage 3

Adding Animations

This final step is not necessary but it’ll help you add animations to your menu with simple jQuery. The first thing you need to do, of course, is to call the latest jQuery plugin on your website:
1
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
Now, let’s add a "noJS" class to the submenu to be able to unhook the hover css state in jQuery. This will also ensure that the menu will still work when javascript is disabled.
1
2
3
4
5
6
7
8
 <li>
    <a href="#">Periher</a>
    <ul class="noJS">
        <li><a href="#">Hellenico</a></li>
        <li><a href="#">Genere</a></li>
        <li><a href="#">Indulgentia</a></li>
    </ul>
 </li>
You also need to add the class to the sub menu CSS hover state:

1 #coolMenu li:hover ul.noJS {
2 display: block;
3 } 
Now that everything is set let’s add some magic:

1
2
3
4
5
6
     

$(function(){
$('#coolMenu').find('> li').hover(function(){
        $(this).find('ul')
        .removeClass('noJS')
        .stop(true, true).slideToggle('fast');
    });
});
The code is pretty explanatory. The script finds the immediate children list items and adds a hover function. Inside the function it removes the "noJS" class since we’re using JavaScript, and then it tells the menu to slide down on hover and to slide up on un-hover. This is achieved with the slideToggle function. The stop function prevents the animation from repeating itself if we hover multiple times.
 

Copyright © 2012. Blogger Tricks O Tips - All Rights Reserved

Proudly powered by Blogger