Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #377157

    Hi,
    using the Portfolio 4 Columns, once clicked on a portfolio item, the arrow on the right of the screen links to the next (chronologically speaking) item, while the arrow on the left of the screen links to the previous (chronologically speaking) item.
    – see this screeshot http://www.pixentral.com/pics/1xTIDpX5wWMz3LUmxA20K3VruAyB0.png
    Is it possible to switch this behavior (the client would prefer: right arrow -> previous item / left arrow -> next item).
    How?

    thank you

    Simone

    #377507

    Hey simonefiorucci!

    Open up /enfold/functions-enfold.php and find lines 357 – 366.

    if(version_compare($settings['wpversion'], '3.8', '>=' ))
    {
    	$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']);
    }
    

    And change it to this.

    if(version_compare($settings['wpversion'], '3.8', '>=' ))
    {
    	$entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    	$entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']);
    }
    else
    {
    	$entries['next'] = get_previous_post($settings['same_category']);
    	$entries['prev'] = get_next_post($settings['same_category']);
    }
    

    Regards,
    Elliott

    #378820

    Thank you Elliot!
    simple and clean.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Portfolio 4 Columns – arrows prev / next post’ is closed to new replies.