Topic: no javascript | WP Masonry Layout

no javascript

Home Forums Lite Version no javascript

This topic contains 5 replies, has 2 voices, and was last updated by  Masonry Guy 2 years ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2536 Reply

    simon

    Hi, is it possible to create a no javascript fallback?

    #2550 Reply

    Masonry Guy
    Keymaster

    Hi Simon,

    Sorry there is no javascript fallback.

    Thanks

    #2555 Reply

    simon

    There is however a way of adding one, for anyone else who wishes to do this

    <noscript>
    <div class=”wmle_container” id=”wmle_container” data-load-status=”ready”>
    <div class=”wmle_item_holder <?php echo $shortcodeData[‘wmlo_columns’] ?>”></div> <!– FILLER DIV FOR WIDTH REFERENCE –>
    <?php include( TEMPLATEPATH . ‘/news-loop-fallback.php’ ); ?>
    </div>
    </noscript>

    and create a normal php loop for the posts/post types, with standard pagination if required

    #2556 Reply

    simon

    and add that to the wml_container.php file in “includes” folder of the plugin

    #2557 Reply

    simon

    oh and you may need to add your own masonry and/or relative/float left and adjust styles.
    you can also add a style tag within that file just to hide the load more button

    hope that helps someone! I just discovered this 30 minutes ago

    #2558 Reply

    Masonry Guy
    Keymaster

    Hi Simon,

    Thank you so much for sharing the solution here. Hope this will be helpfull to anyone that wish to have javascript fallback.

    Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: no javascript
Your information: