Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • rzhong Friend
    #187339

    How to use/enable jquery masonry feature in the latest JA Metra template? Thanks, -Rick

    Ninja Lead Moderator
    #492810

    Hi Rick,

    You need to make a heavy customization to achieve that. You should consider to hire a developer to carry out such work, customization support is out of JA support scope.

    Basically, what you should do is:

    1) Load javas in templates/ja_mero/tpls/blocks/head.php file of your template

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    <script src="/path/to/jquery.masonry.min.js"></script>

    2) Always in main content make the wrap (container)
    and give to the element inside the class “item”
    Code:

    <div id="container">
    <div class="item" name"mason1">...</div>
    <div class="item...">...</div>
    <div class="item...">...</div>
    ...
    </div>

    3) In the css put
    Code:

    .item {
    width: 220px;
    margin: 10px;
    float: left;
    }

    4) Put script before your body closing tag </body>

    window.onload = function() {
    var wall = new Masonry( document.getElementByClassName('item, item2'), {
    columnWidth: 240
    });
    };

    rzhong Friend
    #493178

    Thank you so much, Ninja! I’d try it out myself first, see if I can get it work. Currently I’m still learning the new Joomla, T3, K2, Bootstrap, LESS.., all these things are new to me!

    Cheers,:D
    -Rick

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

This topic contains 3 replies, has 2 voices, and was last updated by  rzhong 11 years, 6 months ago.

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