Site logo

Archived topic

WooCommerce VS Blog Column & Masonry

6 replies · Started by MaksymPS on February 25, 2016

Viewing posts 1–7 of 7

Hi Tom,

How to fix next proplem?
If you have on your site a WooCommerce and enabled Blog Masonry or Blog Columns, you'll get the result from searching (by YITH WooCommerce Ajax Product Search) like here.

Once I wrote you, and you gave me the code:

add_filter('generate_blog_masonry','generate_woocommerce_search_masonry');
function generate_woocommerce_search_masonry()
{
                if ( is_search() && is_woocommerce() )
                                return 'false';
                
        // Otherwise, disable it
                return 'true';
}

But it doesn't work. I mean, it works, but makes the opposite (blog become smaller, the search result bacome normal).

I just wanna use as Blog Masonry as WooCommerce search result.

Extra question #1:
How to make the menu as yours on this site? I mean when you at the top - it is big and with full logo, when you go lower, it becomes smaller.

Extra question #2:
Maybe you know, how to make smoth scrolling like here All I know is that is JS plugin (script). And I can't understand how ti use it and where I have to put it.

Thanks a lot, Tom!
Best regards ;)

Hi there,

So you're wanting WooCommerce and your search template to have masonry enabled?

1. This site is using our Menu Plus add-on for the menu functionality.
2. I'm not sure what you mean by smooth scrolling? Have you asked the creator of that site?

Yes, I want that Blog Masonry was enabled in my blog and search result in YITH WooCommerce Ajax Product Search was Ok.
You can try it in your test GP: just enable Blog Masonry and use YITH WooCommerce Ajax Product Search and see the result with few products. It displays incorrectly.

1. Thanks, I will try :)
2. No, I haven't. I'll try to connect to him (I was thinking that you know).

I'll test that and will let you know :)

- - - Update - - -

So, Tom, did you test?)

Ah, the way WooCommerce displays products makes it so masonry won't work without a custom page template.

In the next version of GP Premium/Blog I have masonry turned off for search results in WooCommerce.

I can send you the latest version if you email me at support@generatepress.com.

Let me know :)

Ok, thanks a lot Tom!
I've just sent you a letter ;)

In waiting the latest version :)

Best regards!

This archived topic is closed to new replies.