Bug: blog-with-filter gallery overlaps with other elements

6 replies · opened Sep 13, 2016

PParadox815Sep 13, 2016

I've included links to some screenshots to show you what I'm talking about. I believe it's an issue with Isotope, as using any filter will immediately fix the problem. However this is what it looks like on the page load, which is strange, because according to the Isotope Docs this shouldn't be an issue if it's properly loaded as you guys have done using the $(window).load() callback. And if you're wondering, yes, these screenshots are taken from a fresh download. Any assistance would be much appreciated as I'd really love to have a page like this that can filter galleries in this layout.

Cheers! Dan

Screenshots: http://imgur.com/a/HKTOS

SSemicolon WebSTAFFSep 13, 2016

Hello,

Apologies about the Inconveniences caused. Please let us know which Template are you using from the Package which has this issue. If you are using your own Custom Template then please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

PParadox815Sep 13, 2016

I mentioned it in the title - the file is blog-with-filter.html (in the HTML directory, if that helps). The issue is carrying over to my modified version, but is definitely still present in the packaged template.

SSemicolon WebSTAFFSep 15, 2016

Hello,

Thank You so much for your Patience and Really Apologize about the Inconvenience. There was an Error with the File itself not using the Latest Codes which was causing the Issue. Please consider using this File: https://www.dropbox.com/s/59t30hoyaa00d97/blog-filter.html?dl=1 .

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

PParadox815Sep 15, 2016

Thank you so much! Just definitely pass it along to add this to the next update as this is a really great page with a ton of potential, I'm really happy to see it working as it should now :)

PParadox815Sep 15, 2016

Actually, I spoke too soon. There is no filter in this template. The overlay issue is fixed, but but the filter is gone.

<h1>SHAME.</h1>

Luckily, it still seems to work if you just add the HTML from the flawed template back in. For anyone else who comes across this and needs this page to work, firstly you must add the following JavaScript to the bottom of the page:

:javascript
  $(window).load(function(){

    var $container = $('#posts');

    $container.isotope({ transitionDuration: '0.65s' });

    $('#blog-filter a').click(function(){
      $('#blog-filter li').removeClass('activeFilter');
      $(this).parent('li').addClass('activeFilter');
      var selector = $(this).attr('data-filter');
      $container.isotope({ filter: selector });
      return false;
    });

    $(window).resize(function() {
      $container.isotope('layout');
    });

    $("#posts").isotope({ filter: '*' });
  });

And then obviously the HTML for the filter itself in the div with the class sidebar-widgets-wrap:


.widget.widget_links.clearfix
            %h4 Blog Filter
            %ul#blog-filter
              %li
                %a{"data-filter" => "*", :href => "#"}
                  %div Show All
              %li
                %a{"data-filter" => ".bf-image", :href => "#"}
                  %div Image
              %li
                %a{"data-filter" => ".bf-video", :href => "#"}
                  %div Video
              %li
                %a{"data-filter" => ".bf-sound", :href => "#"}
                  %div Sound
              %li
                %a{"data-filter" => ".bf-gallery", :href => "#"}
                  %div Gallery

Convert from haml to html with a free converter somewhere on the internet

SSemicolon WebSTAFFSep 16, 2016

Hello,

We recommend using the Default Filter Functionality included with Canvas instead of using the Old Codes. We have just updated the Codes with the Filter in the Template we provided you with earlier. So, simply re-Download this File: https://www.dropbox.com/s/59t30hoyaa00d97/blog-filter.html?dl=1 .

This should definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard