-
AuthorPosts
-
September 13, 2014 at 8:36 pm #318594
Hi!
I was wondering if there was a way to make the Ajax preview in the “Portfolio Grid” open at the same location as the portfolio item in the grid (directly above or below it). I have many items in the “Portfolio Grid” so it is inconvenient for visitors when they have to scroll back down the page to resume browsing after Ajax takes them to the top of the page. This is especially critical when viewing the “Portfolio Grid” on a mobile device because all the portfolio items are stacked in a long single column.
It would also be really nice if the mobile view of the “Portfolio Grid” could show 2 or 3 items per row instead of just one large item per row.
Thanks for your help,
ChrisSeptember 14, 2014 at 5:41 am #318764Hey Chris!
Thank you for using Enfold.
Unfortunately, this falls beyond the scope of support. Please hire a freelance developer to modify the ajax portfolio script for you. Anyway, the preview does have a previous and next navigation that users can use to browse through the remaining portfolio items.
Cheers!
IsmaelSeptember 14, 2014 at 4:08 pm #318872Thanks for responding Ismael. I thought that it might be too big of a modification. But could you take a look at this post: #171923. I’m not sure what is being referred to here. It seems like the same issue but I could not find those lines of code.
Also, since you brought up the “previous” and “next” buttons. I have several categories in the portfolio grid. If someone selects one of these categories in the top menu (the menu that sorts and filters the grid by category) and then use the “previous” and “next” navigation, they have to scroll through ALL of the portfolio items. Is there a way to limit the ajax preview to only the category that was selected? Meaning, if “ALL” is selected, all items will show in ajax preview, but if “PODCASTS” category is selected, only items in the category “podcasts” will show in ajax preview.
Thanks again for all your help,
ChrisSeptember 14, 2014 at 4:09 pm #318873Sorry, the post I was referring to above was #171923
September 15, 2014 at 5:01 am #319001Hi!
The suggested code on the other thread will only disable the scroll animation when you click a thumbnail. It won’t change the position of the ajax preview. I’m sorry but you won’t be able to filter the portfolio items by category when using the ajax portfolio. However, you can enable this filter on the post navigation but you’ll have to disable the ajax portfolio and let the portfolio items open on single pages. Add this on functions.php:
add_filter('avia_post_nav_settings','avia_same_category_filter', 10, 1); function avia_same_category_filter($settings) { $settings['same_category'] = true; return $settings; }
Cheers!
IsmaelSeptember 15, 2014 at 3:45 pm #319250Ok. No problem. That might work fine, and I have some other options to make things work. Good to know before I move forward.
Thanks for the Info :)
September 15, 2014 at 7:33 pm #319359Probably a stupid question, but what do you mean by “enable this filter on the post navigation”? I’m willing to try it but I’m not sure what I’m looking for or what it will allow me to do.
September 17, 2014 at 5:45 am #320302Hey!
I’m referring to the snippet above. It will filter the posts by category when you click on the post navigation located at the edges of the browser on single posts view.
Cheers!
IsmaelSeptember 17, 2014 at 2:53 pm #320516Got it! I had not worked with single page posts very much so I wasn’t even aware of this function. I think this will work just fine.
Thanks Ismael!
-
AuthorPosts
- The topic ‘Open "Ajax Portfolio Preview" at same location instead of scrolling to the top’ is closed to new replies.