Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Marco Romano Friend
    #187444

    I have a problem in the module brick. Images do not align, as shown in the attach. I don´t understand. Any idea?
    the url is http://www.amigosdafotografia.com.br/site/


    1. tela
    Ninja Lead Moderator
    #492702

    Due to the concept this template need to show pictures are block of square(width = height). If you want to show alike the demo you need to drop the picture with size square(width = height).

    Or other way you can customize js in file

    templates/ja_argo/html/mod_k2_content/brick/default.php

    from


    jQuery (document).ready(function($){
    updateHeight = function(){
    $('.brick-img').each(function(){
    $(this).css('height', $(this).width());
    });
    }

    updateHeight();
    $(window).bind('resize', updateHeight);
    })

    change to


    /*
    jQuery (document).ready(function($){
    updateHeight = function(){
    $('.brick-img').each(function(){
    $(this).css('height', $(this).width());
    });
    }

    updateHeight();
    $(window).bind('resize', updateHeight);
    })
    */

    pb66 Friend
    #492750

    Your issue is to do with the way that the Brick module processes the images. By default it fits them in and doesn’t crop them.

    Read this thread http://www.joomlart.com/forums/topic/make-images-fit-to-module-square-size/

    My solution was to insert square images into my K2 articles, knowing that K2 would crop them in the article view – but then I don’t have that many articles so it’s a simple solution!

    Hope this helps!

    Regards,

    Ninja Lead Moderator
    #492818

    In K2 Component, you can configure to resize width image from Parameter of K2

    If you don’t want to show square-size image you can remove js script in templates/ja_argo/html/mod_k2_content/brick/default.php

    Find and remove script


    jQuery (document).ready(function($){
    updateHeight = function(){
    $('.brick-img').each(function(){
    $(this).css('height', $(this).width());
    });
    }

    updateHeight();
    $(window).bind('resize', updateHeight);
    })

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  Ninja Lead 11 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum