Hallo Kriesi Team,
is there a way to assign a previous / next portfolio item link to a button or text on a portfolio page ?
How could that be done ?
Many thanks, Chris.
Hi Chris!
Are you talking about a page where your using the portfolio grid shortcode? If so then I do not see an easy way of going about that and it would have to be considered custom work.
If your talking about your single portfolio posts though then there should be previous / next links on each side of the screen to navigate to the next post.
Regards,
Elliott
Yes, the single portfolio posts. Got it now and all good and that works for the client. They didn’t show up at first because we had a full width slider as the first element …
Hi!
You can still enable the avia_post_nav on pages with full width sliders. Just add this to the functions.php file;
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;
}
Regards,
Ismael
Thanks – and how would I have to go about to reverse the direction of the default previous next buttons such that it shows newer entries on the left side and older entries on the right ?
Hey!
To reverse them try adding this to the bottom of your functions.php file.
add_filter( 'avia_post_nav_entries', 'enfold_customization_reverse_post_nav', 10, 1 );
function enfold_customization_reverse_post_nav( $entries ) {
$prev = $entries['prev'];
$next = $entries['next'];
$entries['prev'] = $next;
$entries['next'] = $prev;
return $entries;
}
Cheers!
Elliott
Works – awesome ! Thanks a lot.