Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #475159

    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?

    #475892

    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

    #476139

    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!

    #476512

    Hey!

    Do you mind creating a temporary admin login and posting it here privately? You should not need CSS :)

    Cheers!
    Yigit

    #476518

    Thank you – I changed those lines in both the child theme and main theme.

    #476522

    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

    #476526

    Yay! Thank you Yigit!

    #476531

    Hi!

    You are welcome, glad we could help!

    Cheers!
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Reverse order of right and left arrows on single portfolio piece’ is closed to new replies.