• Home
  • About
  • Help
  • Testimonials
  • How Tos
  • Galleries
  • Slideshows
  • Galleria
  • Plugin News
  • Flickr News

Customizing Slickr Flickr Gallery using CSS

April 8, 2010 by Russell Leave a Comment

  • Share
  • +1
  • Share
  • Pin It
  • Buffer

The default CSS settings in Slickr Flickr galleries work fine on a normally sized site with a white background.

But did you know you do have the ability to alter fonts, sizes, styles, margin and paddings by amending the stylesheet elements?

The default style is defined in a CSS file, slickr-flickr.css, and is located in the Slickr Flickr plugin directory. Please note that if you change this you are doing so at your own risk. However that risk is quite small as if things get messed up you can always just reinstall the Slickr Flickr plugin to get back the original settings. This file gets updated every time you update the plugin so it is not the best place to make changes; it is better to put your Slickr Flickr CSS overrides in the same place you put your theme overrides – which may be in a custom.css file or the style.css of a child theme.

Let’s look at an example of customizing the Slickr Flickr Gallery hightlight color.

It’s likely you might want to modify is the highlight color when the visitor moves their cursor over a thumbnail in the Flickr gallery

If you look in slickr-flickr.css you will see that the line that sets the highlight color is:

[css]
.slickr-flickr-gallery ul a:hover img { background-color: brown;}
[/css]

So if you wanted a blue highlight color in the content area (assuming your theme had a container element with id=”content”) you would add the following line to your style.css file:
[css]
#content .slickr-flickr-gallery ul a:hover img { background-color: blue;}
[/css]
Note that the reason that the theme’s CSS setting overrides the default plugin setting is because it is more specific – it contains the #content at the beginning. Note that not every theme contains a element called “content”; it might be called “page” or “container” or something similar – you just have to view the source of a page and pick the correct CSS element.

If you are using the Thesis theme then it is slightly different; both in terms of the file you edit and also in the CSS itself.

For Thesis Theme Users Only

If you are running the Thesis theme then put your customizations in custom.css.

For example to modify the highlight color to blue when you hover over a thumbnail in the Flickr Gallery, use:

[css]
.custom .slickr-flickr-gallery ul a:hover img { background-color: blue };
[/css]

Remember to include the .custom at the beginning of the line.

Also Thesis allows you to get even more specific so if you want to customize a particular gallery on a specific page to have a green highlight color then Thesis lets you do this.

So, if the page has a URL of my-example then the CSS is

[css]
.custom .my-example .slickr-flickr-gallery ul a:hover img { background-color: green};
[/css]
The reason this works is that Thesis put the “custom” class on the body element of all its pages.

If you want to find out more about Thesis then check out Ten Reasons To Use the WordPress Thesis Theme

For Hybrid Theme Users Only

The free theme I recommend using is Justin Tadlock’s Hybrid theme which is good for SEO and very extensible. With Hybrid you will have a child theme for your site and you will add the override to the style.css file that is located in the child theme folder.

[css]
.page-template .slickr-flickr-gallery ul a:hover img { background-color: green};
[/css]

Even though Hybrid is free, it makes sense to sign up to Justin’s Hybrid support membership site which $25 per year and gives you access to lots of great information to help you be successful with Hybrid.

Updated by Russell.

Filed Under: Flickr Galleries, Flickr How To Tagged With: customizations, flickr tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest News

Slickr Flickr v2.8 was released on 8th February 2021. This supports WordPress 5.6, PHP 7.4 and has internationalisation support.

Small Slideshow In Widget

Rocco as a Stole

Joined At The Lughole

A Greener Way To See Life Down Under

You Can Almost See The Sea From Here

No Way!

A Girl Can Never Have Too Many Blankets

Does My Head Look Big In This?

Summertime and The Livin' is EZ

Somebody dropped a Sandwich?

Smile And The Whole World Smiles With You

Rocco "Downie" Junior

Slickr Flickr Support

  • Get Support with Slickr Flickr Pro
  • Slickr Flickr Documentation
  • Slickr Flickr FAQ
  • Slickr Flickr Issues
  • Suggest Ideas
  • Flickr API and HTTPS

Gallery In Widget

New To Flickr and are missing photos?

Just a reminder that for new Flickr accounts it takes 3-5 working days after you upload your fifth photo before you photos are made available by Flickr for searches and also to Slickr Flickr.

For more information see the discussion of the new Flickr account rules on the Flickr forum.

Check the status of your Flickr account by logging in to Flickr and then visiting at http://www.flickr.com/account/

Recent Posts

  • Slickr Flickr 2.8 Release
  • Slickr Flickr 2.7 Release
  • Slickr Flickr 2.6 Release
  • Slickr Flickr 2.5 Release
  • Flickr Search By Text

Recent Comments

  • MK on Slickr Flickr 2.8 Release
  • Russell on How To Display a Flickr Photoset?
  • Russell on Where do I find my Flickr ID

Tags

customizations Flickr API flickr gallery flickr photo gallery Flickr RSS flickr slideshow flickr tutorial galleria lightbox missing latest photos Newsfeed Photo Descriptions Photoset plugin conflict Portrait sorting photos tagged phots thumbnail
  • Contact
  • Donate
  • Slickr Flickr v2.7
Copyright © 2009-2025 DIYWebmastery
PO Box 85 · Hatherleigh · Okehampton · Devon · EX20 4WH · UK
  • Share
  • +1
  • Share
  • Pin It
  • Buffer
  • 0