• Hi Guys,

    I seem to be having a weird issue, when you select a filter option, lets say Blue material, the page reloads but then the header image doesn’t show and no products show. Then I click refresh on my web browser and the page will load correctly.

    I added in a snippet I found in one of these chats for the function PHP, but that still didn’t seem to help the issue.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    Unfortunately, I couldn’t see the filters included in your site:

    Image

    From what you mentioned, it seems you may have an issue with the target selector of the preset to filter the content. I will have to have see a preset in the page you sent us, so I can find a proper selector for you.

    We look forward to hear from you.

    Thread Starter jesska

    (@jesska)

    Hi Pablo,

    I removed it from my page so the client was happy.

    I have placed it on this one so you can see:

    [ redundant link removed ]

    Thanks

    • This reply was modified 2 years, 4 months ago by Jan Dembowski.
    Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    I’ve checked the new page you sent me, the issue happens as the header element is not prepared to me changed with AJAX. In order to avoid this problem we can narrow the filtering content, so it doesn’t act on the header image. However I’ve tried to find a unique selector that will also common in all your shop pages, but couldn’t find, unless you are planning on setting this same elementor template in all your other pages.

    I would recommend to add a ID to the section that has the filters and products, so you can use the following code to fix your issue:

    if( ! function_exists( 'yith_wcan_content_selector' ) ){
    
         function yith_wcan_content_selector( $selector ){
    
                  $selector = '#your-id;
    
                  return $selector;
    
         }     
    
         add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' ); 
    
    }

    So you would just have to replace the text ‘your.id’ in $selector with the id you place in the section. This will change the filtering target of the preset. In order to solved it in all your other pages, I would recommend to use the same elementor template or add the same id to the section in your other pages.

    Hope this helps and have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page only half loads after selecting item from filter’ is closed to new replies.