I have the Pro theme, and I’m trying to improve my search results page.
I made a duplicate of framework/views/global/_index.php and changed:
elseif ( is_search() ) :
$condition = false;
to:
elseif ( is_search() ) :
$style = x_get_option( 'x_archive_style' );
$cols = x_get_option( 'x_archive_masonry_columns' );
$condition = is_search() && $style == 'masonry';
This works great for posts & pages, but woocommerce products show up full-size and in the background of the posts/pages in the masonry layout.
I tried creating framework/views/integrity/content-product.php and copying the contents of content-page.php but that hasn’t made any difference. the added “style” attribute that seems to make the masonry layout work isn’t applying to the product article tags.
Any help would be appreciated.