If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
February 10, 2012 at 11:45 am #9112
When you click on a portfolio entry and the entry opens on the same page you get the + – x controls. Clicking on the x closes the entry and switches back to overview.
Is there a possibility that if you click on the sortable links, the entry also closes?
A lot of people trying out our website are confused when they click on the sortable links and nothing happens because you look at the expanded entry and the sorting happens off screen. It’s a bit confusing.
So if I click on a sortable button, I want to collapse the entry and go back to portfolio overview.
Stephane Van EesterFebruary 10, 2012 at 2:03 pm #63517
After some searching and coding I added the functionality myself. Maybe a suggestion for future updates. It makes the interaction more intuitive for novice users.
Stephane Van EesterFebruary 10, 2012 at 10:57 pm #63518February 11, 2012 at 12:07 am #63519February 13, 2012 at 4:42 pm #63520
Well, it required some editing in avia.js. The function you need to adjust is $.fn.avia_ajax_portfolio. Here you have a controls.bind function. Basically this binds some behavior to the 3 control buttons.
When you take a close look at this function, you will notice that the latest else if binds a function to the close button. Its this function you also need to bind to the sort buttons. And the sort buttons can be found with a selector: sortButtons = $(‘#js_sort_items a’, container);.
Maybe this can be a feature request for next updates. Until then, this works for me.
Stephane Van EesterFebruary 14, 2012 at 5:25 am #63521February 14, 2012 at 7:02 am #63522
Glad that you found a solution :)
I’ll report this thread to Kriesi – maybe he’s interested to include your suggestion in the next update.February 19, 2012 at 6:54 am #63523February 23, 2012 at 8:42 pm #63524February 23, 2012 at 10:29 pm #63525February 27, 2012 at 8:27 am #63526April 4, 2012 at 11:52 pm #63527April 5, 2012 at 7:05 am #63528
The topic ‘Portfolio Single Entry’ is closed to new replies.