Next/previous icons/links in portfolio - swap to opposite

khm's picture
khm
Thu, 11/05/2015 - 08:15
#1
Next/previous icons/links in portfolio - swap to opposite

Hi

Where can I change the portfolio navigation on portfolio pages so that next arrow = right arrow/link and previous arrow/link = left arrow/link? 

Or opposite of what it is now.

Thanks!

phuonght's picture
phuonght
Thu, 11/05/2015 - 22:28

Please go to /admin/structure/types/manage/portfolio > tab "Flippy settings":

you could customize Next and Previous in Label for "Previous" link and Label for "Next" link.

khm's picture
khm
Fri, 11/06/2015 - 04:08

Sorry but there is nothing here that helps me. Maybe I did not make myself clear

Arrows portfolio item page top/bottom: 

- when clicking left arrow: go to previous item

- when clicking right arrow: go to next

When i am in the portfolio item page and want to go to next, the arrow that shows up points to left, not to right

Image title

When on portfolio item page two I get the following navigation

Image title

left arrow should be: previous - right arrow should be next item. 

How can I change the direction of these functions so that left = previous and right = next?

Thanks :)

phuonght's picture
phuonght
Fri, 11/06/2015 - 05:59

So 

Please open file md_max/Js/Scripts.js
Replace lines 376 and 377 with

var linkNext = jQuery(".previous-post-link").children().children().attr("href");
var linkPrev = jQuery(".next-post-link").children().children().attr("href");
khm's picture
khm
Fri, 11/06/2015 - 06:15

Thanks very much sir! Working as a charm:)

Case closed.

kewin's picture
kewin
Sun, 04/10/2016 - 15:12

Hello,

I've replaced the lines as you instructed (see the screenshot) ...and in my case there are no changes.

Please advise,

Thank you,
Kewin

Image title

phuonght's picture
phuonght
Tue, 04/12/2016 - 23:14

Hi Kewin, 

We changed it for you already. You can check in /admin/structure/views/view/max_portfolio_col4/edit > Content > Set "Post date" as ASC.

kewin's picture
kewin
Wed, 04/13/2016 - 02:35

hello,

thank you for that, now the directions are OK.

Kewin

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.