Tagged: enfold
Right now when you are on a single portfolio piece the right arrow takes visitors to the PREVIOUS project and the left arrow takes them to the NEXT project – my client would like this reversed and have the right arrow take visitors to the NEXT project and the left arrow take them to the PREVIOUS project. How would I go about reversing this?
Hi Andrea!
You can switch them on lines 418 – 424 in the /enfold/functions-enfold.php file.
$entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
$entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
}
else
{
$entries['prev'] = get_previous_post($settings['same_category']);
$entries['next'] = get_next_post($settings['same_category']);
Regards,
Elliott
Hmmm,
http://testing.curlyhost.com/portfolio-item/woodmere/
I tried changing the code to the one above and the left button still goes to the next project. Do I also need to switch out the css for where those show up on a page?
Thank you!
Hey!
Do you mind creating a temporary admin login and posting it here privately? You should not need CSS :)
Cheers!
Yigit
Thank you – I changed those lines in both the child theme and main theme.
Hey!
Functions-enfold.php file is not recognized on child theme. You should copy the whole function to functions.php file of your child theme and make the changes on it. I did it for you. Please review your website now.
Best regards,
Yigit
Yay! Thank you Yigit!