Breaking
Loading...
Showing posts with label Design. Show all posts
Showing posts with label Design. Show all posts

Fade In/Out Page Loading Effect On Blogger Posts

A very common effect in jQuery is the fade effect that hide or shows an element by fading it, we can use it in many ways







How to use The Fade in Loading Effect:

Step 1: To put this fading effect on your blog, go to your Template Edit HTML


Step 2: Click anywhere inside the code area and search for the </head> tag using CTRL + F keys:


Step 3: Then just above </head> add the following code:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'/><script type='text/javascript'>//<![CDATA[$(document).ready(function() {$("body").css("z-index", "-10");$("body").fadeIn(0);
$("a").click(function(event){event.preventDefault();linkLocation = this.href;$("body").fadeOut(500, redirectPage); });function redirectPage() {window.location = linkLocation;}});//]]></script><style>html {background-color: #F2F2F2; /* Color fading */}</style>


Step 4: Save the changes and here you go. In RED you can see where to change the color that fades on a loading page. 

The original script hides the body of the page while loading, I prefer to change that property with a  negative, z-index to avoid problems with the search engine robots that may effect the positioning.


Simple Recent Posts Widget for Blogger/Blogspot

The main advantage on this Recent Posts widget is that it will show not only post title but also post excerpts or snippets and it's easy to customize/apply different style on it. To style it into your own design, you just have to modify the CSS style.


What are the facilities:

         
               1.display post title only
               2.change the number of posts
               3.change the number of characters of the post snippet/excerpt.
               4.show the post dates

      How to do it:

      Step 1: Log in to your Blogger account and go to Dashboard, click on Layout and then click on Add a Gadget .


      Step 2: A pop-up window will open, scroll down and choose HTML/JavaScript from there.


      Step 3: Select & Copy the code from one of the options below and paste it into new HTML/JavaScript.

      option 1: Recent posts widget with snippets

      <div id="hlrpsa">
      <script src="http://helplogger.googlecode.com/svn/trunk/recent-posts-with-snippets.js">
      </script>
      <script>
      var numposts = 5;var showpostdate = false;var showpostsummary = true;var numchars = 100;var standardstyling = true;
      </script>
      <script src="http://your-blog.blogspot.com/feeds/posts/default?orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts">
      </script></div>
      <div id="rpdr" style="font-family: arial, sans-serif; font-size: 9px;">
      <a href="http://helplogger.blogspot.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" target="_blank" title="Grab this Recent Posts Widget">Recent Posts Widget</a> by <a href="http://helplogger.blogspot.com" title="Recent Posts Widget">Helplogger</a></div>
      <noscript>Your browser does not support JavaScript!</noscript>
      <style type="text/css">
      #hlrpsa a {color: #0B3861; font-size: 13px;} #rpdr {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnS8dtbmf4i5tjJRxHP_d1P9uyCRNcnFjmhRDUE5t6fDX6mmQSBMTjap3vr7gqaHadquvdA18UtFVVokbWGNgzSSOFfdoMhebtVfUzOoazsEgBpHJizvQ2AEuqRTRzHwEwyrRHWjdA0eQz/s1600/blogger.png) 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 5px 0px 0px 0px;line-height:14px;}
      #rpdr, #rpdr a {color:#808080;}
      #hlrpsa { color: #999999; font-size: 11px; border-bottom:1px #cccccc dotted; margin-top:-10px; padding-bottom:10px;}
      .hlrps a {font-weight:bold; }
      .hlrpssumm {}
      </style>
        


      Option 2: Recent Posts Widget Showing Post Titles Only 

       <div id="hlrpsb">
      <script style="text/javascript" src="http://helplogger.googlecode.com/svn/trunk/recent-posts-with-titles-only.js"></script>
      <script style="text/javascript">var numposts = 10;var showpostdate = false;var showpostsummary = false;var numchars = 100;var standardstyling = true;</script>
      <script src="http://your-blog.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></div>
      <div style="font-family: arial, sans-serif; font-size: 9px;" id="rpdr"><a href="http://helplogger.blogspot.com/2012/04/recent-posts-widget-for-bloggerblogspot.html" title="Grab this Recent Posts Widget" target="_blank">Recent Posts Widget</a> by <a href="http://helplogger.blogspot.com" title="Recent Posts Widget">Helplogger</a></div><noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
      <style type=text/css>
      #hlrpsb a {color: #0B3861; font-size: 13px;} #rpdr {background: url( https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnS8dtbmf4i5tjJRxHP_d1P9uyCRNcnFjmhRDUE5t6fDX6mmQSBMTjap3vr7gqaHadquvdA18UtFVVokbWGNgzSSOFfdoMhebtVfUzOoazsEgBpHJizvQ2AEuqRTRzHwEwyrRHWjdA0eQz/s1600/blogger.png ) 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 5px 0px 0px 0px;line-height:14px;}
      #rpdr, #rpdr a {color:#808080;}
      .bbrecpost2 {
      padding-top:6px;
      padding-bottom:6px;
      border-bottom: 1px #cccccc dotted; }
      </style> 


      Step 4: 

                1.Change (option 1) and 10 (option 2) with the number of posts you want to display. 
                2.Change false to true if you want the posts dates to appear. 
                3.Change 100 (option 1) if you want more characters to be displayed.
                4.To change the color and front size of the links, modify the values in blue (links) and violet (front size)
                5.To change the style of the posts summary, modify the values in green (color) and orange (front size) 
                6.Replace the your-blog text with the name of your blog or if you have a custom domain change all the bolded line with address link in this example: 
        http://www.your-site.com/feeds/posts/default....

        Step 5: Save your widget and you are ready now.

        Making A Gadget Visible Only To The Blog Administator

        Now the post title says it all. There are gadgets that sometimes we want to be visible only to us and not to other people.
        The procedure is simple, we just have to add two lines to our gadget that we want to hide.


        How to do:

        Step 1: Go to Template > Edit HTML and then search for the gadget's code we want to hide by clicking  Ctrl F.

        As an example in a HTML/JavaScript gadget,we will see a code like this:

        <b:widget id='HTML1' locked='false' title='' type='HTML'>
        <b:includable id='main'>
        <span class='item-control blog-admin'>
        <!-- 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'/>
        </span>
        </b:includable>
        </b:widget>
         Now all you have to do is add the parts in RED and ready to go. If you close the session go to your blog you'll not be able to view the gadget that you have hidden, but as soon as you sign in you will see that it is visible to you.

        Not all gadgets have the same structure like in this example, but it will be easier to guide you, just place the first code in the red just after <b:includable id='main'>

        And the second red code just before  </b:includable>

        Note: To look inside the widget's code, click on the sideways arrow next to the widget's id.

        And with that the gadget will be hidden for readers except you. 

        Awsome Multi-Colored Popular Posts Widget for Blogger powered CSS3

        Popular Posts Widget is a Widget providing by Blogger and we can add it to our Blog. This Widget displays the Most Viewed posts of your blog that maybe of month or in week or All the time. You can select how Popular posts are to be displayed. By default it shows an image(if the post has any) and Title of Post followed by the content of post wrapped by 20-25 words. This article is a tutorial to Style that Popular posts Widget to an Awesome Multi-Colored Popular posts Widget.





        Click on the Link to see the Preview of this Post => See


        How to do :

        Step 1: Sign in to your Blogger Account and Add Popular Post Widget to Blogger.

                    Go to  Layout ->  Select  "Add a Gadget" and take  Popular Posts Widget from the Widget List.

        Step 2: Go to Template ->  Edit HTML, Find ]]></b:skin> by pressing Ctrl+F

        Step 3: Copy the following code and Paste it Just above it

        <!-- Popular posts multi colored UI theme -->
        #PopularPosts1 ul{margin:0;padding:5px 0;list-style-type:none}
        #PopularPosts1 ul li{position:relative;margin:5px 0;border:0;padding:10px}
        #PopularPosts1 ul li:first-child{background:#ff4c54;width:97%}
        #PopularPosts1 ul li:first-child:after{content:"1"}
        #PopularPosts1 ul li:first-child + li{background:#ff764c;width:87%}
        #PopularPosts1 ul li:first-child + li:after{content:"2"}
        #PopularPosts1 ul li:first-child + li + li{background:#ffde4c;width:84%}
        #PopularPosts1 ul li:first-child + li + li:after{content:"3"}
        #PopularPosts1 ul li:first-child + li + li + li{background:#c7f25f;width:81%}
        #PopularPosts1 ul li:first-child + li + li + li:after{content:"4"}
        #PopularPosts1 ul li:first-child + li + li + li + li{background:#33c9f7;width:78%}
        #PopularPosts1 ul li:first-child + li + li + li + li:after{content:"5"}
        #PopularPosts1 ul li:first-child + li + li + li + li +li{background:#7ee3c7;width:75%}
        #PopularPosts1 ul li:first-child + li + li + li + li + li:after{content:"6"}
        #PopularPosts1 ul li:first-child + li + li + li + li + li +li{background:#f6993d;width:72%}
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li:after{content:"7"}
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li +li{background:#f59095;width:69%}
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li + li:after{content:"8"}
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li + li +li{background:#c7f25f;width:66%}
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li + li + li:after{content:"9"}
        #PopularPosts1 ul li:first-child:after,
        #PopularPosts1 ul li:first-child + li:after,
        #PopularPosts1 ul li:first-child + li + li:after,
        #PopularPosts1 ul li:first-child + li + li + li:after,
        #PopularPosts1 ul li:first-child + li + li + li + li:after,
        #PopularPosts1 ul li:first-child + li + li + li + li + li:after,
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li:after,
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li + li:after,
        #PopularPosts1 ul li:first-child + li + li + li + li + li + li + li + li:after{position:absolute;top:20px;right:-15px;border-radius:50%;background:#353535;width:30px;height:30px;text-align:center;font-size:28px;color:#fff}
        #PopularPosts1 ul li .item-thumbnail{float:left;border:0;margin-right:10px;background:transparent;padding:0;width:70px;height:70px;}
        #PopularPosts1 ul li a{font-size:13px;color:#444;text-decoration:none}
        #PopularPosts1 ul li a:hover{color:#222;text-decoration:none}
        #PopularPosts1 img{
        -moz-border-radius: 130px;
        -webkit-border-radius: 130px;
        border-radius: 130px;
        -webkit-transition: all 0.3s ease;
        -moz-transition: all 0.3s ease;
        transition: all 0.3s ease;
        padding:4px;
        border:1px solid #fff !important;
        }
        #PopularPosts1 img:hover {
        border-radius: 0 0 0 0;
        -moz-transform: scale(1.2) rotate(-711deg) ;
        -webkit-transform: scale(1.2) rotate(-711deg) ;
        -o-transform: scale(1.2) rotate(-711deg) ;
        -ms-transform: scale(1.2) rotate(-711deg) ;
        transform: scale(1.2) rotate(-711deg) ;
        }
        <!-- popular posts multicolored UI theme -->

        Step 4: Click on Preview Template.

        Step 5: Save The Template and you are Done.

        Change Your Old Facebook Look into New one

        What is New Facebook Skin:(Scroll Down for Video Help)

        Facebook Have Changed their looks recently in 2013. You now can get rid of that boring FB skin. Though the color remains Blue but they have made some changes in the new skin.

        How to get it:
        Follow the steps to get your new Skin.

        Step 1: Go to : https://www.facebook.com/about/newsfeed and scroll down to the bottom.

        Step 2: Click on "Try the new look" button.


        Step 3: Now follow some instructions and you are ready to go.


        Create A Rollover Image Effect (Change Image On Mouseover)

        The Rollover effect is one in which an image web object changes (swaps itself) on mouse over to another web object (called rollovers) and reverts back to the original image on mouse out. Rollover images are preloaded into the page when it is loading, this ensures that the rollovers are displayed quickly. The onMouseOver and onMouseOut attributes of the link tag are used to make this functional.


        Making Rollover Effect Image

        You have the following code:

         <a href="URL ADDRESS"><img src="URL OF THE FIRST IMAGE GOES HERE" onmouseover="this.src='URL OF THE SECOND IMAGE GOES HERE'" onmouseout="this.src='URL OF THE FIRST IMAGE GOES HERE'" /></a>

        Change the colored texts as it follows:

        1. URL ADDRESS

        This is the address where somebody will be sent when clicks on the image.
        Example, my blog address: http://helpnsolve.blogspot.com/

        2. URL OF THE FIRST IMAGE GOES HERE

        Replace the orange text (two times) with the URL address of the image which will appear before you hover over it.

        3. URL OF THE SECOND IMAGE GOES HERE
        Replace the text in blue with the url of  the image that will appear when the cursor hovers over it.

        Now you can paste your image inside a blog gadget, going to Layout > click on Add a Gadget link (right side) > Select HTML/JavaScript from the pop-up window, then add it to your sidebar.

        You can also add it inside your post by going to New Post > Switch to HTML tab and then paste the code in the empty box.

        That's it. Enjoy ;)

        How To Remove Blogger Picture/Image Shadow And Border


        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.



        Hide/Show Widgets/Gadgets In Home/Post/Static/Archive Pages In Blogger



        As some of you may have noticed, all the widgets/gadgets you add to your blog, will be displayed on all the pages by default, including the homepage as well. And I'm sure very few know that AdSense could disable your account in case you've put ad units inside the content of your contact or privacy policy pages. Therefore, hiding certain elements inside your blog pages is not only a matter of design, but it is also a requirement.

        To hide (or show) widgets in particular posts, static pages, homepage or archive pages, you can use conditional tags.

        Step 1. Go to Blogger's Dashboard > Layout and name the HTML/Javascript gadgets that you have already added. Doing this, it will be easier for you to identify the widgets that you have in your Blogger's template. Give it a unique title so that it does not match with any of the titles of any other widgets already added.

        Step 2. Next thing to do is to go to Template and click on Edit HTML



        Step 3. Select the "Expand Widget Templates" checkbox.



        Step 4. Find the widget's title in the HTML by using Ctrl+F and entering the widget's name in the search box.
        Let's say that the title for one of my widgets is "Recent Posts". After searching for the widget's name, I will find a similar code in my template:

        <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:includable></b:widget>  


        This code represents the widget/gadget that I have added in the Page Elements location (Layout).

        Step 5. After you've found your widget's code, add the following conditional tags marked with red just below and above to hide the widget from specific pages or posts in Blogger. For instance, in case you want:


        To show the widget only in Homepage:
        <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><b:if cond='data:blog.url == data:blog.homepageUrl'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:if></b:includable></b:widget> 

        To show Blogger widget only in post pages
        <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType == "item"'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:if></b:includable></b:widget> 


        To show the widget in a specific page
        <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><b:if cond='data:blog.url == "URL of the page"'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:if></b:includable></b:widget> 


        Note: Replace URL of the page with the address of the page in which you want the widget to appear

        To hide a widget only in a particular page
        <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><b:if cond='data:blog.url != "URL of the page"'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:if></b:includable></b:widget>  

         To show widgets only in static pages
         <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType == "static_page"'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:if></b:includable></b:widget> 


        To hide widgets in Static Pages
        <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType != "static_page"'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:if></b:includable></b:widget> 


        To show widgets only in Archive Pages
        <b:widget id='HTML1' locked='false' title='Recent Posts' type='HTML'><b:includable id='main'><b:if cond='data:blog.pageType == "archive"'><!-- only display title if it's non-empty --><b:if cond='data:title != ""'><h2 class='title'><data:title/></h2></b:if><div class='widget-content'><data:content/></div>
        <b:include name='quickedit'/></b:if></b:includable></b:widget>  

        Step 6. After you have added the conditional tags, Save Template and view your blog.

        That's it! 

        How To Add Snow In The Background of Your Blog Using CSS

        Today we’re going to go over a super simple CSS technique that you can use to make it snow on your Blogger blog. It seems particularly attractive since it doesn't require scripts, only CSS and three small images.

        An advantage of this method is that by not using scripts doesn't overload the blog, the disadvantage is that users with not so modern browsers, will not be able to see it (in Internet Explorer works for version 10 and up).

        The snow will fall in the background of the blog, which, in addition, prevent interfering with links or content (because the flakes are images), also prevent blocking the visibility of the content of the blog.


        How To Add Falling Snow To Blogger Blogspot :



        Step 1. Go to Template and click on the Edit HTML button: 




        Step 2. Click the small arrow on the left of <b:skin>...</b:skin> to expand the style (screenshot 1) and click anywhere inside the code area to search by using the CTRL + F keys for the ]]></b:skin> tag (screenshot 2)

        Step 3. Add the following code just above it:

         /* Snow falling for Blogger----------------------------------------------- */@keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;}100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}
        @-moz-keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;}100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}
        @-webkit-keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;}100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}
        @-ms-keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;}100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}
        #falling-snow {background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8hJxPMKCj2i_o7BN0AtKg2jeVt1VH0G-5-YLjpMCDfjPWYja2ZzzIT75uoNZ7zgfNqT92iJurwOoyPPCkhsH-oCoVrG3Kzf5aoUt1oGCrqyMgNnFoIKnzSu_yBbErBpYQM1Zc8IMSPpOj/s1600/snow.png), url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwkFeluAoashSWdqzYn6FXa0QnneWV-p3WVClncEF2gkC8cDsHo2-NlqnehNYHYq8I7KakRXWCsY_3BStuyo1vtcxN4IYqRL1Z-46M_Otd_BagrvrRQEPBYDdfZUeoqD98ZuFpxr6CC0sO/s1600/snow3.png), url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-pg2qTJJNyTXhllb2Uru8ruvwZgRmeYm3_sTsAeHKE8_zNWao2q1rIdX-dmPSaZlrQ2NuYLeflvXFewZ7gO2vLfFwgZnDKb2raGx1pOqqlhqbRjHmVSCgzbowC1MGwKp7A_3OmJPvWY9H/s1600/snow2.png);-webkit-animation: snow 20s linear infinite;-moz-animation: snow 20s linear infinite;-ms-animation: snow 20s linear infinite;animation: snow 20s linear infinite;}

                                                                         Screenshot 1: 




                                                                          Screenshot 2:



        Step 3. Now, search (CTRL + F) the <body> tag or if you can't find it, search this line below:

         <body expr:class='&quot;loading&quot; + data:blog.mobileClass'>
        Step 4. And just below, add this:

         <div id='falling-snow'>
        Step 5. Finally, find the </body> tag (CTRL + F) and add the following just above it:
         </div>
        Step 6. Save the changes and that's it. Enjoy!!! :)

        As you can see this tricks is very simple and easy to install, does not block the visibility of blog's content and most important, it has no scripts, only CSS and nothing else.

           

         
        Copyright © 2013. OddThemes - Published By Gooyaabi Templates - All Rights Reserved