Updated look

Couple days back I’ve revamped the look of this website a bit. I stumbled upon a nice and simple looking WordPress theme called Tracks. Used it as a base and adjusted some CSS and of course added my custom bit of Fancybox to the mix. I also found a nicer looking plugin for the WordPress gallery called WP Tiles. Threw it all together and this website is the result of it all.

For the combination of WP Tiles and Fancybox I had to make some tiny adjustments to my custom.js to load it all. Find the updated code below

$(function(){
    var gallery = 0;
    $(".gallery, .tiled-gallery, .wp-tiles-container").each(function(){
        gallery++;
  
        $(this).find(".gallery-item, .tiled-gallery-item, .wp-tiles-tile").each(function(){
            var title = $.trim($(this).find("figcaption").html());
            $(this).find("a").attr({
                "data-fancybox": "gallery" + gallery,
                "title": title
            });
        });
    });
});

Be First to Comment

Leave a Reply

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