How to change my Flickr JavaScript to show your pictures?

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

I use Flickr JS in all my themes, the question of changing the code to show certain pictures is frequently asked, so here’s the simple answer.

Open sidebar.php, look for the Flickr code, in the javascript change the code tag=art to tag=your unique tag on flickr. If you do not have a unique tag, create one on flickr, I use the tag “headsetop� and since no one else uses it, I get all my pictures streamed to my site.

Alternatively, you could use your Flickr ID number as a tag (I believe), but I have never tried. 
 

Leave a Comments | Trackback | RSS 2.0

  1. 1. Sweettea | September 4, 2006 #

    I’d like to know how to completely remove the flickr code from a template, if that is at all possible…. Thanks!

  1. 2. hso | September 4, 2006 #

    Totally possible. Open sidebar.php, look for title My Flickr, delete that and the code below that starting and ending with div

  1. 3. Sweettea | September 4, 2006 #

    Worked like a charm! Thanks!

  1. 4. totoJack | December 17, 2006 #

    I did it. It is very easy.
    If I want to place my personal images in a Flickr-badge, how can I manage this Flickr-badge in sidebar.php ?

  1. 5. hso | December 17, 2006 #

    @ totoJack

    First you need to have a Flickr account, then tag all your images that you want displayed on you site with a unique tag. Then alter the Flickr code in your theme by changing the tag=art part to tag=your unique tag.

  1. 6. weeflower | May 21, 2007 #

    Hi, I tried to find the “tag=art part to tag” but cannot find it on the style.css, i found this instead.

    Flickr

    Am I looking at the wrong place?

  1. 7. weeflower | May 21, 2007 #

    Opps, it’s didnt show up above. It shoud be :

    *** php if ((function_exists(’get_flickrRSS’)) && is_home() && !(is_paged())) { ?>
    Flickr

    Many thanks if you can advise me.

  1. 8. hso | May 22, 2007 #

    @ weeflower

    The flickr code and tag are never in style.css, usually it is in sidebar.php (depends on the theme you are using).

    If you are using one of the 3K2 series themes, then you will find two filckr codes, one uses a plugin and the second a JavaScript, the JS one has a tag which defaults to “art”, change that to your images tag.

  1. 9. PanLeo | May 28, 2007 #

    Thank you very much for an excellent theme. I enjoy 3k2redux Klee a lot but can’t find this JS flickr art tag either in sidebar.php or else. Could you please advise where I can find it, please?

  1. 10. headsetop | May 28, 2007 #

    @ PanLeo

    Open sidebar.php and look for this JavaScript:

    script type=”text/javascript” src=”http://www.flickr.com/badge_code_v2.gne?count=4& display=random&size=s& layout=y&source=all_tag& tag=3k2reduxScreenshot”

    The tag “3k2reduxScreenshot” must be changed to your tag.

  1. 11. PanLeo | May 28, 2007 #

    Thanks!

    Ha! This section was (strangely) removed from the sidebar.php installed on my website. I had to copy it again and now it works fine. Thanks again for a nice theme!

  1. 12. Rudy | January 15, 2008 #

    Hi,

    I just want to know.. where can i get that JS code from my FLICKR?

    This is sample code from others site…

    but i want to know, that code are from another guys… but how can i get that code with my FLICKR?

    thanks,
    :)

  1. 13. hso | January 15, 2008 #

    @ Rudy

    Here’s the original flickr code:

    1. <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne? count=4&amp;display=random&amp;size=s&amp; layout=y&amp;source=all_tag&amp; tag=art"></script>
Have Your Say »

(Required- use your name, not keywords)

(Required- will not be published)

(Optional)

Use SimpleCode while pasting codes.