Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #321517

    Hi,

    Discovered that when scrolling through the “post navigation” ( right and left hovered buttons, at both ends of screen, on single product pages) it displays products that should remain hidden from catalog.
    Products that I don’t wan’t to be viewed.

    Any quick fix for this?

    Regards,
    Daniel

    #321967

    Hey Daniel_N!

    Please refer to Peter’s post here – https://kriesi.at/support/topic/portfolio-link-arrows/#post-245040

    Best regards,
    Yigit

    #322265

    Hey!

    Unfortunately you can’t exclude products which are hidden from the catalog. We use standard wordpress functions to query the next/previous posts and these functions don’t care about the WooCommerce catalog settings. You can only remove the next/prev product links at all if you don’t want that the user can access product pages which are hidden from the catalog. You can use this code:

    
     function category_specific_post_nav($settings)
      {
          if(is_product()) $settings['is_fullwidth'] = true;
          return $settings;
      }
    
      add_filter('avia_post_nav_settings','category_specific_post_nav', 10);
    

    Cheers!
    Peter

    #322268

    Hi Peter,

    That’s a pity. Perhaps a fix for this in future releases?

    Used the code snippet, remove post navigation for, from enfold document site, guess above code does the same….

    Thanks,
    Daniel

    #322274

    Hey!

    The code I posted here: https://kriesi.at/support/topic/post-navigation-woocommerce-single-products-page/#post-322265 will only remove the next/prev post links from the product pages.

    We don’t plan to fix this issue because we use the standard wordpress functions and in our opinion woocommerce should better integrate with wordpress. Thus it’s up to the WooCommerce devs to add proper support for the http://codex.wordpress.org/Function_Reference/next_post_link and http://codex.wordpress.org/Function_Reference/previous_post_link functions.

    Best regards,
    Peter

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.