Home › Forums › Lite Version › no javascript
Tagged: javascript fallback
- This topic has 5 replies, 2 voices, and was last updated 6 years, 2 months ago by
Masonry Guy.
- AuthorPosts
simon
GuestHi, is it possible to create a no javascript fallback?
Masonry Guy
KeymasterHi Simon,
Sorry there is no javascript fallback.
Thanks
simon
GuestThere 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
simon
Guestand add that to the wml_container.php file in “includes” folder of the plugin
simon
Guestoh 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 buttonhope that helps someone! I just discovered this 30 minutes ago
Masonry Guy
KeymasterHi Simon,
Thank you so much for sharing the solution here. Hope this will be helpfull to anyone that wish to have javascript fallback.
Thanks.
- AuthorPosts