Gists

16 hours ago
/** custom size of input **/
.facetwp-type-autocomplete {
  width: 571px; /** desired width of input + width of submit buton **/
  margin-left: auto;
  margin-right: auto; /** remove these 2 margins to remove centering **/
  position: relative; /** allows the dropdown to use 100% as size **/
}
.facetwp-autocomplete {
  width: calc(100% - 71px); /** leaves space for width of button **/
}
.fcomplete-wrap {
  width: 100%; /** desired width of input **/
  max-width: none;
  min-width: none;
}
16 hours ago
/**
Solutions:

Unknown:

WP External Links - needs to be disabled - may be a ob_* function

**/
1 day ago
/** center search **/

.facetwp-type-search {
  text-align: center;
}

/** change width of input box **/

.facetwp-input-wrap {
  width: 500px;
}
.facetwp-facet input.facetwp-search {
  width: 500px;
}
2 weeks ago
<?php

add_filter( 'facetwp_builder_item_value', function( $value, $item ) {
    if ( 'website-link' == $item['settings']['name'] ) { // adjust website-link to name of your layout field https://d.pr/i/gL3rjA
        if ( !empty( $value ) ) {
	    	$value = '<a href="' . esc_url( $value ) . '">website</a>';
        } else {
            $value = '';
        }
    }
    return $value;
}, 10, 2 );
2 weeks ago
add_action( 'admin_head', function() {
    ?>
    <style>
        .facetwp-content .popover {
        position: absolute;
        width: 220px;
        top: 20px;
        left: 20px;
        background-color: #fff;
        outline: 1px solid #69747E;
        z-index: 10;
    </style>
    <?php
});
3 weeks ago
.rtl .facetwp-radio {
  background-position: 100%;
  padding-right: 20px;
  padding-left: 0;
}
2 weeks ago
<?php

add_filter( 'facetwp_index_row', function( $params, $class ) {
    if ( 'country' == $params['facet_name'] ) {
        $details = $params['place_details'];
        $params['facet_value'] = $details['country'];
        $params['facet_display_value'] = $details['country'];
    }
    return $params;
}, 10, 2 );
3 weeks ago
(function($) {
    document.addEventListener( "facetwp-loaded", function() {
        $( ".facetwp-checkbox.checked .facetwp-expand" ).trigger( "click" );
    });
})(jQuery);
4 weeks ago
<?php

add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
    if ( 'elementor_library' == $query->get( 'post_type' ) ) {
        $is_main_query = false;
    }
    return $is_main_query;
}, 10, 2 );
1 month ago
/**
Solutions:

Porto - Make sure "Show Skeleton Screen" setting is NOT enabled for Shop


Unknown:


**/