-
AuthorPosts
-
October 25, 2019 at 3:53 pm #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éOctober 30, 2019 at 9:26 am #1152247Hey 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,
IsmaelOctober 30, 2019 at 11:55 am #1152272Hi Ismael
Thanks for reply. Added the code, but unfortunately, Navigation is still not shown.
René
October 31, 2019 at 6:53 pm #1152825Hi,
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,
IsmaelOctober 31, 2019 at 10:41 pm #1152889Hi 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é
November 8, 2019 at 3:27 am #1154815Hey!
Sorry for the late response. Can we have access to the dashboard? We would like to test the post navigation settings.
Regards,
IsmaelNovember 8, 2019 at 8:21 am #1154873Hi Ismail
Here it is. Thank you.November 12, 2019 at 6:31 am #1155834Hi,
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,
IsmaelNovember 13, 2019 at 11:02 am #1156338Hi 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éNovember 15, 2019 at 11:41 am #1157141Hi,
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,
IsmaelNovember 15, 2019 at 12:45 pm #1157169Hi Ismail
Works fin, thank you. Problem resolved.
René
November 15, 2019 at 10:24 pm #1157339Hi baiker,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.