Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #689325

    Hi

    when I compose a portfolio item without a slider inside, it automatically proposes arrows to go to previous or next portfolio item when it is published. Even if items are not in the same portfolio category.

    Anyone ?

    Thanks

    #689327

    Hey EOPRODFX!

    Would you like to disable post nav? If so, please add following code to Functions.php file in Appearance > Editor

    add_filter('avia_post_nav_entries','avia_remove_post_nav', 10, 1);
    function avia_remove_post_nav()
    {
    return false;
    }

    Best regards,
    Yigit

    #689344

    Thanks Yigit

    actually I can use your solution, I’ll try

    but is this a bug that the post nav proposes item that is not in the same category ??

    #689346

    By the way, another subject

    how can I force a widget menu to be at the bottom of the page when it’s on a mobile ?

    Thanks

    #691448

    Hi,

    but is this a bug that the post nav proposes item that is not in the same category ??

    You can set the post navigation to filter items from the same category. Please add this in the functions.php file:

    
    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('portfolio')) {
            $settings['taxonomy'] = 'portfolio_entries';
    	$settings['is_fullwidth'] = false;
      }
      $settings['same_category'] = true;
      return $settings;
    }
    

    For new inquiries, please create a new thread with the url to the site and the login credentials.

    Best regards,
    Ismael

    #692356

    Hi Ismael, I try to do the same with the categories of products to WooCommerce will navigate between the products of a single category.

    Regards.
    Jean

    • This reply was modified 8 years, 1 month ago by freepixelweb.
    #693476

    Hi,

    Change code to:

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('product')) {
            $settings['taxonomy'] = 'product_cat';
    	$settings['is_fullwidth'] = false;
      }
      $settings['same_category'] = true;
      return $settings;
    }

    Best regards,
    Josue

    #693556

    Hi Josue, it works partially, the navigation arrow disappears to the previous category tab but the tab with the link is always displayed.

    Regards..
    Jean

    #694147

    Hi Jean,

    Could you post a link to the site in question so that we can take a closer look please?

    Best regards,
    Rikard

    #694234

    Hi Rikard, ok it’s work fine now, I had forgotten a previous code into your functions.php file, all is well, thank you.
    I disabled access …

    Regards.
    Jean

    #695607

    Hi,

    glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,
    Andy

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘PORTFOLIO ITEM ISSUE’ is closed to new replies.