Po ...
How to Customize Blogger's Lightbox
10 comments
For those of you who have chosen to use the Blogger's Lightbox View for displaying pictures when clicking on them, you have the option to change its style in a whole different way. You will be able to change the black color of the screen, the border or shadow of the images and the color of the thumbnails background. We can customize the Blogger Lightbox entirely on our taste.
Demo
Take a look at the screenshots below:
Before:
After:
After adding our CSS code, the entire look of the modal window will be changed: the background color, the bar showing the thumbnails, the border of images, the text within it, transparency and the close button.
All we have to do is to overwrite the default styles and change them with ours.
How to Change the Blogger's Lightbox Background and Style
Step 1.Go to Template, click on the Edit HTML button (also click on the Proceed button if needed)
Step 2.Click anywhere inside the code area and search using CTRL + F the following tag:
Step 3.Just above thetag, add the following code:
Note:
- The text in green explains to which part the code belongs to and it doesn't need to be modified
For example, the portion below/ * Background Color * /can change the background color or even the LightBox background color with an image - for this, change this line by replacing the red text with the url address of your image:
background-image: url(image-url) !important;- Below is the opacity: if you add a lower value (0.8) the background will become more transparent.
- To change the icon for the close button, you have to replace the text in red from/* Close Button */with the URL of your image. (you can host image at tinypic or upload it into a blogger draft and then Copy the Link Location - read this tutorialfor more info)
- To change the text color of images, replace the#555555value from/* Index Info (number of images) */
- We can also change the look of the border around our pictures like we can make them more round, add a shadow, etc... but remember this is CSS3 and older versions of Internet Explorer will not show any changes.
Step 4.Click onSave Templateand you're done!
Like
3
Random Posts
Spacegallery: image gallery/slideshow made with jQuery27/10/2013 - 8 Comments
Tips To Avoid Your Google Adsense Account From Getting Banned13/04/2012 - 38 Comments
4 Different Styles For the Popular Posts Widget20/09/2013 - 17 Comments
Related Posts:
Add a Custom jQuery Lightbox To Blo...
How to Add CSS code To Blogger usin...
How to add custom Variable definiti...
Understanding the Page Elements of ...
How to Add Numbered Page Navigation...
10 comments:
Pankaj Panday 3/28/2013
nice tutorials ..can you tell me how to add facebook like box to blogger. Reply
Rita Oarga 3/29/2013
Hi!
I was very happy with my beautiful new lightbox for a while. But for a few weeks now it doesn't work. On click, the image opens at its webadress. I tried in Google chrome, IE and M. Firefox.
The lightbox doesn't work anymore.
Could You help? I really want it back.
My blog is: http://comoridelicioas e.blogspot.ro/
Thank You very much. Reply
Replies
Admin 3/31/2013
Hi Rita,
You should wait until the page has finished loading because the browser tries to read the style meanwhile. Please re-check it again, it works fine from here.
Thanks for the visit!
matpila 5/13/2013
This comment has been removed by the author. Reply
Channing Parker 5/25/2013
Everything works great except for the fact that the close button can't be seen once the Lightbox is in use. Any suggestions?? Reply
Mauro Moraes 6/06/2013
Nice tip! I loved it!
But, i have a question. Is possible hide an image in lightbox?
I use the tip for hide/show widgets/gadgets to hide an image inside the post, and work very well. But... in the lightbox the hidden image appear normally! Any sugestion? Reply
Matpila 7/05/2013
Can you add jquery effect for this? Reply
Oemar 12/27/2013
nice share, i'will try, and i have see the demo on your blog right ?
Can you add button share or another link when lightbox active ?
btw great thanks post this post :) Reply
Robert 2/12/2014
Hi,
I'm trying insert caption(s) in my lightbox; Any suggestions? Reply
Anonymous 3/02/2014
Many thanks for this nice and useful information. Is there any way to scale-up images ? I mean, if image is larger than screen resolution, lightbox scales down to fit it to the browser. But if image is small, LightBox doesn't scale it up to the maximum size to touch browser window boundaries. How can we do this? (I tried putting width:100%; height:100%; but no luck) Reply
Add comment
Comment as: Sign out
Notify mePublishPreview
Privacy Policy| Disclaimer| Terms of Service| Sitemap Back to Top DMCA PROTECTED
Search
Search
Follow on Facebook
Helplogger
Like
2,784 people like Helplogger .
Facebook social plugin
Follow on Blogger
Subscribe via Email
Receive Quality Tutorials Straight in your
Inbox by submitting your Email below.
Submit
Or subscribe via RSS Feed
Recent Posts
How to Add Numbered Page Navigation Widget for Blogger
5 Easy Ways to Improve the SEO of a blog & Boost Traffic
What is the difference between padding and margins?
Add a Custom jQuery Lightbox To Blogger
How to Use Cookies in Javascript
Recent Comments
irsah imihar
Customizing will always be easy with jquery and javascript. Even...
Missy G
Yay! Thank you for making this so easy! This is just what I...
divakar sivashankar
admin i have a problem even if i add the tag the ad is showing up...
Anonymous
I don't understand the instructions you have given :(
Nanette Benablo
your site is very helpful and easy to follow tutorials. thank you...
Popular Posts
Simple Recent Posts Widget for Blogger/Blogspot
Create A Rollover Image Effect (change image on mouseover)
Recent Comments Widget For Blogger
How to remove Blogger Picture/Image Shadow and Border
Hide/Show Widgets /Gadgets in Home/post /static/archive pages in Blogger
3
Like
No comments:
Post a Comment