Skip to content

Instantly share code, notes, and snippets.

function fl_builder_loop_query_args_filter( $query_args ) {
if ( 'test-grid' == $query_args['settings']->id ) {
$query_args['post_parent'] = 0;
}
return $query_args;
}
add_filter( 'fl_builder_loop_query_args', 'fl_builder_loop_query_args_filter' );
@kamlesh08
kamlesh08 / custom-layout-content-tiles.css
Created May 18, 2020 10:17
Custom Layout for PowerPack Content Tiles Module - Beaver Addons
.pp-post-tile-left{
float: right !important;
width: 50%;
}
.pp-post-tile-left .pp-post-tile-post {
margin-left: 5px;
margin-right: 0px !important;
}
.pp-post-tile-right .pp-post-tile-post {
margin-left: 0px !important;
@kamlesh08
kamlesh08 / Filtering-Products-FacetWP-WooPack-Product-Grid.js
Created May 14, 2020 10:23
Inconsistent Layout while Filtering Products with FacetWP on WooPack Product Grid
(function($) {
$(document).on('facetwp-loaded', function() {
$('.woopack-products').imagesLoaded(function() {
var highestBox = 0;
$('.woopack-products > .product').css('height', '').each(function(){
if($(this).height() > highestBox) {
highestBox = $(this).height();
}
});
$('.woopack-products .product').height(highestBox);
@kamlesh08
kamlesh08 / woopack-product-carousel-compatibility.js
Last active May 14, 2020 10:12
JS for compatibility issues with WooPack Product Carousel & Woo Variation Gallery and Woo Variation Swatches.