Friday, April 6, 2012

How to remove Blogger Picture/Image Shadow and Border

If you want to get rid of those annoying shadows and borders around blogger images, then follow the next steps (see the difference in the screenshot below):
If you are using the old Blogger interface:
  • Go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.

If you are using the new Blogger interface:
  • Go to Dashboard - Template - Customize - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.

.post-body img, .post-body .tr-caption-container, .Profile img, .Image img,
.BlogList .item-thumbnail img {
  padding: none !important;
  border: none !important;
  background: none !important;
  -moz-box-shadow: 0px 0px 0px transparent !important;
  -webkit-box-shadow: 0px 0px 0px transparent !important;
  box-shadow: 0px 0px 0px transparent !important;
}

Now your blogger images should appear without any border or shadow. Cheers!

Update:

If the above method doesn't work for you, do the following:

- Go to Blogger's Dashboard > Design (Layout) > Edit HTML
- Thick the "Expand widget templates" checkbox;
- Search (CTRL + F) for the following code:

  border: 1px solid $(image.border.color);

  -moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
  -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
  box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);

- Delete it and Save your template.

Replace Older, Newer And Home Blogger links with an image or text

Newer Post, Home and Older Post are links that appear on the bottom of the posts. When a visitor click on one of these links, they will take him to the page with the list of your previous posts.
The number of the posts on these pages will be the same as the number of the posts on your main page.


What we can do:

A. Change the text of Newer, Older, Home links
B. Place a picture beside them (a small icon, arrow, or whatever...)
C. Add an image instead of the links

So let's start customizing them...

1. Log in to your Blogger Dashboard, go to Design > Edit HTML > make a backup of your template
2. Check the "Expand Widget Templates" box
3. Find (CTRL + F) the following code:

    <b:if cond='data:newerPageUrl'>
      <span id='blog-pager-newer-link'>
      <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>
      </span>
    </b:if>

    <b:if cond='data:olderPageUrl'>
      <span id='blog-pager-older-link'>
      <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
      </span>
    </b:if>

    <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>

Find in this code the following fragments which corresponds to each page links
  1. <data:newerPageTitle/> represents Newer Posts link
  2. <data:olderPageTitle/> represents Older Posts link
  3. <data:homeMsg/> represents Home link
Now change these fragments of codes as it follows:

A. Change the text of the links

You need to REPLACE following parts in original code with ANY TEXT you like:
  • replace <data:newerPageTitle/> with, for example NEXT POST 
  • replace <data:olderPageTitle/> with, for example PREVIOUS POST
  • replace <data:homeMsg/> (only the first one) with, for example HOMEPAGE

    B. Place a picture beside Newer Posts, Older Posts and Home links

    Add the below code just at the beginning of each of the colored fragments of codes from step 3.

    <img src="URL Address"/>

    So it should look like this

    <img src="URL Address"/><data:newerPageTitle/>

    Note: Replace URL Address text with the url address of the image you want to appear

    C. Replace Older Posts, Newer Posts and Home links with an image/picture

    You can place any kind of picture you want All you have to do is use this code for the pic:

    <img src="URL ADDRESS"/>


    ...just replace URL ADDRESS, with the URL of your hosted picture
    ...and in code, REPLACE the original link code for text with picture code
    • replace <data:newerPageTitle/> with the pic for newer (next) posts
    • replace <data:olderPageTitle/> with the pic for older (previous) posts
    • replace <data:homeMsg/> (only the first one) with the pic for homepage

    4. That's it! Preview and Save the Template.

    Add Static Facebook Pop Out Like Box with Smooth Jquery Hover Effect

    In this tutorial i will show you how to add a cool floating Facebook like widget for Blogger that slides to the left on mouseover. Demo: You can see a static facebook badge at the right side of this blog


    Adding Static Facebook Like widget on blogger

    Just follow the steps:

    1. Log in to your Blogger Dashboard, go to Design >> Edit HTML

    2. Check the "Expand Widget Templates" box

    3. Search (CTRL + F) for this tag:

    </head>

    4. Add the following code just before/above </head> tag:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

    5. Save the Template.

    6. Now go to Design >> Page Elements >> Add a new Gadget >> Choose HTML/JavaScript and in the HTML box, paste the code below:

    <style type="text/css">
    /*<![CDATA[*/
    #fbplikebox{display: block;padding: 0;z-index: 99999;position: fixed;}
    .fbplbadge {background-color:#3B5998;display: block;height: 150px;top: 50%;margin-top: -75px;position: absolute;left: -47px;width: 47px;background-image: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhguQhGoV24hrHCBuJFyC9k9xfa226LjDvodjL4NhXbCItY5jPW5LpBlySBso75zHgSITfBTBPD6keb1x3XrpXLVxUUc6FpXKfVIXIv0YbQBqO8tEzVc9eAYMOrDKnYf8tEEitfXjA_mYw/s1600/vertical-right.png");background-repeat: no-repeat;overflow: hidden;-webkit-border-top-left-radius: 8px;-webkit-border-bottom-left-radius: 8px;-moz-border-radius-topleft: 8px;-moz-border-radius-bottomleft: 8px;border-top-left-radius: 8px;border-bottom-left-radius: 8px;}
    /*]]>*/
    </style>
    <script type="text/javascript">
    /*<![CDATA[*/
        (function(w2b){
            w2b(document).ready(function(){
                var $dur = "medium"; // Duration of Animation
                w2b("#fbplikebox").css({right: -250, "top" : 100 })
                w2b("#fbplikebox").hover(function () {
                    w2b(this).stop().animate({
                        right: 0
                    }, $dur);
                }, function () {
                    w2b(this).stop().animate({
                        right: -250
                    }, $dur);
                });
                w2b("#fbplikebox").show();
            });
        })(jQuery);
    /*]]>*/
    </script>
    <div id="fbplikebox" style="display:none;">
        <div class="fbplbadge"></div>
        <iframe src="http://www.facebook.com/plugins/likebox.php?href=YOUR-FACEBOOK-PAGE&amp;width=250&amp;height=250&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23C4C4C4&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;background:#FFFFFF;" allowtransparency="true"></iframe>
    </div>

    7. Replace YOUR-FACEBOOK-PAGE text above with the URL of your facebook fan page.
    Also replace the : symbol in your URL with %3A and / with %2F

    For example, my facebook fan page is:

    http://www.facebook.com/pages/Helplogger/120574614736021

    After replacing the characters above, your facebook fan page should look like this:
    http%3A%2F%2Fwww.facebook.com%2Fpages%2FHelplogger%2F120574614736021

    Other settings (optional):
    - to change the width and height of the facebook box, change the bolded values (250)
    - to change the background color of the facebook fan box, replace #FFFFFF with the hex code of your color (you can choose it from here)
    - if you want to change the color of the facebook badge (facebook button) replace this code #3B5998
    with your own.

    8. Now you can save your widget. Enjoy!

    Credit goes to Harish (way2blogging)

    Thursday, April 5, 2012

    Amazing Examples To Customize Blockquote Style In Blogger/Blogspot

    Add awesome designs, backgrounds and CSS3 effects for displaying HTML, CSS and other codes in blogger posts using CSS and CSS3. Just follow these steps:

    Step 1. Go to design > Edit HTML > check the "Expand widget templates" box

    Step 2. Search for this piece of code:

    </head>

    Step 3. Just above it, paste the following code:

    <link href='http://bloggingcreate.googlecode.com/svn/trunk/css/blockquotes/styles.css' rel='stylesheet' type='text/css'/>

    Step 4. Save the Template

    Now everytime you create a post, switch to Edit HTML tab, choose the syle you like and add the red codes below to the beginning and end of the text you want to quote. See the screenshot below:


    Here are the available designs:

    Example 1:

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.

    <div class="code1"> YOUR TEXT HERE </div>

    Example 2

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.

    <div class="code2"> YOUR TEXT HERE </div>

    Example 3:

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.

    <div class="code3"> YOUR TEXT HERE </div>

    Example 4:

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.

    <div class="code4"> YOUR TEXT HERE </div>

    Example 5:

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.

    <div class="code5"><div class="code-5"> YOUR TEXT HERE </div></div>

    Example 6


    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.

    <div class="code6"> YOUR TEXT HERE </div>


    Enjoy!

    A Simple Related Posts Widget For Blogger

    In the last tutorial, i've been talking about the Related Posts widget that shows related posts along with thumbnails just at the end of your blog articles. Some of the users, however, would prefer a simpler and cleaner displaying of their related posts so that it would show just the posts titles. So let's begin adding it!

    related post, related post blogger, blogger tricks

    How to add Related Posts Widget to Blogger

    Step 1. Go to Template >> Edit HTML and tick the "Expand Widget Templates" checkbox

    Step 2. Find the below tag

    </head>

    Step 3. And just above it, paste the following code:


    <!--Related Posts Scripts and Styles Start-->
    <!--Remove--><b:if cond='data:blog.pageType == &quot;item&quot;'>
    <style type='text/css'>
    #related-posts {
    float:center;
    text-transform:none;
    height:100%;
    min-height:100%;
    padding-top:5px;
    padding-left:5px;
    margin-top: 20px;
    }
    #related-posts .widget{
    padding-left:6px;
    margin-bottom:10px;
    }
    #related-posts .widget h2, #related-posts h2{
    font-size: 17px;
    font-weight: normal;
    color: black;
    font-family: Arial Narrow;
    margin-bottom: 0.75em;
    padding-top: 0em;
    }
    #related-posts a{
    font-size:16px;
    color: #555555;
    font-variant:small-caps;
    }
    #related-posts a:hover{
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    }
    #related-posts ul{
    list-style-type:none;
    margin:0 0 0px 0;
    padding:0px;
    text-decoration:none;
    text-color:#000000
    }
    #related-posts ul li{
    list-style-type: none;
    border-left: 2px solid #1399CF;
    border-bottom: 1px dotted #1399CF;
    margin-bottom: 3px;
    padding-left: 30px;
    padding-top:0px;
    }

    #related-posts ul li:hover{
    background-color: #1399CF;
    border-left: 2px solid #B3CA3D;
    border-bottom: 1px dotted #B3CA3D;
    }
    </style>
    <script type='text/javascript'>
    var relatedpoststitle=&quot;Related Posts&quot;;
    </script>
    <script src='http://bloggingcreate.googlecode.com/svn/trunk/related_posts.js' type='text/javascript'/>
    <!--Remove--></b:if>
    <!--Related Posts Scripts and Styles End-->

    Note:
    - if you want to change the size and color of 'Related Posts' title, change the bolded values (17 for the font size and black for the color)
    -to change the related post title color, replace the value in red;
    -to change the background color on mouseover, replace the color value in blue;

    Step 4. Now find (CTRL + F) the below line:

        <div class='post-footer'>

    Step 5. Just above it, paste the code below:

    <!-- Related Posts Code Start-->
    <!--Remove-->
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    <div id='related-posts'> <b:loop values='data:post.labels' var='label'> <b:if cond='data:label.isLast != &quot;true&quot;'> </b:if> <b:if cond='data:blog.pageType == &quot;item&quot;'> <script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=6&quot;' type='text/javascript'/></b:if></b:loop>
    <script type='text/javascript'> var maxresults=5; removeRelatedDuplicates(); printRelatedLabels(&quot;<data:post.url/>&quot;); </script> </div> <!--Remove--></b:if> <!-- Related Posts Code End-->

    Note: In order to change the number of maximum related posts being displayed for each label, search for the code max-results=5 and change the number "5" to any desired number.

    Step 6. Save Template

    Enjoy!!!
    //PART 2