Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #312018

    Hi,

    I already tried searching for my problem but could not find a fitting solution.

    My problem is concerning the previos and next arrows that appear within Woo Commerce in Enfold. I mean those black ones on the left and right edge of the screen that just really appear when you are hovering over them.

    My problem is that the products in the shop have been published at different times (and that is, so far as I have understood it, the sorting mechanism).

    I would like those arrows only to navigate within its own category and not cross-link to other categories.

    I alread tried this: https://kriesi.at/support/topic/portfolio-link-arrows/ but it did not work.

    Thank you so much for your help!

    Best
    Chris

    #313006

    Hey Christian!

    Try this code instead:

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

    Insert it into the enfold/functions.php or child theme functions.php file (at the very bottom).

    Best regards,
    Peter

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