Tagged: navigation, Portfolio
After adding an advanced layer slider to my portfolio page (to show one slide with overlays) with ALB, the navigation from one portfolio to another is missing. I mean the little grey boxes that have an arrow and image directing you to next portfolio item. How is this possible?
Hey envis!
It’s because they overlap. You can add this to your child theme functions.php file if you want it to display anyway.
add_filter( 'avia_post_nav_settings', 'enfold_customization_post_nav', 99 );
function enfold_customization_post_nav( $settings ) {
$settings['is_fullwidth'] = false;
return $settings;
}
Regards,
Elliott
Great, works like a charm. Thank you very much! :)
on second thought, I only wanted this to work on my portfolio and now it also works on my homepage scrolling through the pages.
how can I only allow this on the portfolio pages???
Hi!
Your thread has been reopened as requested here: https://kriesi.at/support/topic/reopen-thread/
Regards,
Dake
I only wanted this to work on my portfolio and now it also works on my homepage scrolling through the pages.
how can I only allow this extra navigation on the portfolio pages???
Hey!
For only portfolio posts try this out.
add_filter( 'avia_post_nav_settings', 'enfold_customization_post_nav', 99 );
function enfold_customization_post_nav( $settings ) {
if ( get_post_type() == 'portfolio' ) {
$settings['is_fullwidth'] = false;
}
return $settings;
}
Regards,
Elliott
Elliott,
I have tried it and it does not work.
Deleted all caching clientside and serverside caching is turned off.
Any other suggestions?
Gerben
Hi!
Sorry, try it now.
Cheers!
Elliott
Excellent, all in order now.