Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1151235

    Hi
    I have portfolio items with layersliders and the left and right arrows are not shown. I found this old task response:

    Are you using a layerslider o a fullwidth slider in your portfolio items? there’s a rule that will prevent the post nav from showing if one of those is present (because they overlap):

    if((class_exists(‘avia_sc_layerslider’) && !empty(avia_sc_layerslider::$slide_count)) ||
    class_exists(‘avia_sc_slider_full’) && !empty(avia_sc_slider_full::$slide_count) ) $settings[‘is_fullwidth’] = true;

    Is it still the case? Or some way to show them anyway?
    Thanks
    Remé

    #1152247

    Hey baiker,

    Thank you for the inquiry.

    The post navigation is by default disabled when there is a full width element such as the layer slider added in a page. But you can use the following filter to modify that behavior.

    add_filter('avia_post_nav_settings','avia_remove_fullwidth_slider_check', 10, 1);
    function avia_remove_fullwidth_slider_check($settings) {
      $settings['is_fullwidth'] = false;
      return $settings;
    }

    Please add it in the child theme’s functions.php file.

    Best regards,
    Ismael

    #1152272

    Hi Ismael

    Thanks for reply. Added the code, but unfortunately, Navigation is still not shown.

    René

    #1152825

    Hi,

    Thank you for following up.

    Where can we see the issue? We can’t find any blog posts in the site with a layer slider in it. Please provide a link to the post so that we can inspect it, or provide the login details in the private field.

    Best regards,
    Ismael

    #1152889

    Hi Ismael

    I don’t have blog posts, the problem with the left and right arrows I have is on portfolio items, for example:

    When I created the site, I had it, and after some updates of the theme there were gone.

    Strange is, that this happens only under the portfolio Menu “Musik Alben”. The others, “Fotogalieren” and “Videos” have the navigation.

    René

    #1154815

    Hey!

    Sorry for the late response. Can we have access to the dashboard? We would like to test the post navigation settings.

    Regards,
    Ismael

    #1154873

    Hi Ismail
    Here it is. Thank you.

    #1155834

    Hi,

    Sorry for the delay. We modified the filter a bit and set the “skip_output” option to false. The post navigation displays properly now.

    function avf_post_nav_settings_mod($settings) {
      if(is_singular('portfolio')) {
         $settings['is_fullwidth'] = false;
         $settings['skip_output'] = false;
      }
      return $settings;
    }
    add_filter('avf_post_nav_settings','avf_post_nav_settings_mod', 999, 1);

    Best regards,
    Ismael

    #1156338

    Hi Ismael

    Thank you for working on this problem. I think, it is not the perfekt solution yet. Normally, the arrows should only appear on portfolio items or blogs. Now, they appear even on the starting page and that causes strange effects, for example empty sites on menus with mega menus, and they are in order of the pages, not the menu order.

    Best regards,
    René

    #1157141

    Hi,

    Thank you for the update.

    We adjusted the above filter a bit and added a conditional tag to it so that the settings will only be applied to single portfolio pages. It should work properly now.

    Best regards,
    Ismael

    #1157169

    Hi Ismail

    Works fin, thank you. Problem resolved.

    René

    #1157339

    Hi baiker,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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