Sunday 6 April 2014

How to Customize Image Lightbox in Blogger

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDIuy6j7D_s9PYDe5PF2hYZL6X_QmiqV-ZGeYzEIy6dGR4lwVwZW6KHzTgjjMeU11kFP5L9-CLz9fZyq0tbdYdVhpYvXvPM55Usg8YkSgVpxHYI7CYtteX4SBggy6O4H92qbA_jQSdSC8D/s1600/How-to-Customize-Image-Lightbox-in-Blogger.png

Recently, we showed you how to disable image Lightbox, but we haven’t talked about a way to customize image Lightbox in blogger. Since, blogger is a flexible platform we can override the existing Lightbox Stylesheet to customize and make it look similar to your site. This gives you enough freedom to change the style of the Lightbox according to your desired needs. In this article, we will show you How to customize Image Lightbox in Blogger.

Before we start working with our tutorial, we have assembled two screenshots below demonstrating that how your Lightbox would appear before and after applying the customization. It would certainly look more elegant and polished.

Before:

After:

The very first thing you need to do is to login into your Google Account and go to Blogger ›› Template ›› Edit HTML. Now within the template coding search for the ]]></b:skin> tag and just above it paste the following piece of stylesheet coding. (Note: In the following CSS, we have added comments to help you identify that how you can customize different aspects of your Lightbox like text color, background color, close button and etc).


/* MBL Blogger Lightbox
———————————————– */

/* Background Color */
.CSS_LIGHTBOX_BG_MASK {
background-color: #ffffff !important;
background-image: url(image-url-address) !important;
opacity: 0.8 !important;
filter: alpha(opacity=90) !important;
}

/* Images Border */
.CSS_LIGHTBOX_SCALED_IMAGE_IMG {
outline: 0px solid #fff !important;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 5px #000000;
-moz-box-shadow: 0px 0px 5px #000000;
box-shadow: 0px 0px 5px #000000;
}

/* Close Button */
.CSS_LIGHTBOX_BTN_CLOSE {
background: url(image-url-address) no-repeat !important;
width: 24px !important;
height: 24px !important;
}

/* Thumbnails Bar Color */
.CSS_LIGHTBOX_FILMSTRIP {
background-color: #eaeaea !important;
border-top:1px solid #d2d2d2!important;
}

/* Text Color */
.CSS_LIGHTBOX_ATTRIBUTION_INFO, .CSS_LIGHTBOX_ATTRIBUTION_LINK {
color: #000 !important;
}

/* Index Info (number of images) */
.CSS_LIGHTBOX_INDEX_INFO {
color: #555555 !important;
}

Congratulations: Save the template by pressing the orange “Save Template” button located right at the top of your screen. Now you have successfully customized your image Lightbox with just simple CSS technique.

We hope this tutorial may have helped you in learning How to customize an image light box in blogger. Do let us know if you are already using this technique? At MyBloggerLab, we have disabled Lightbox because it interferes while a person is reading a long tutorial. However, those who have wallpapers or portfolio sites can use it Freely. If you like this article, then share it with your friends on Facebook, Twitter and Google+.

0 comments:

Post a Comment


Tips Tricks And Tutorials

You can also receive Free Email Updates:

Widget by NBT

Tips Tricks And Tutorials

You can also receive Free Email Updates:

Widget by NBT

Tips Tricks And Tutorials

You can also receive Free Email Updates:

Widget by NBT