Tagged: Portfolio
-
AuthorPosts
-
December 3, 2017 at 9:44 pm #884414
I’m trying to find a way to build a Masonry gallery for my portfolio posts. The problem with the current one shown here https://kriesi.at/themes/enfold-2017/portfolio/masonry-portfolio-example-4-column-masonry-grid/ is that when you click on one of the images, it brings you to a new portfolio-item page, but there is NO clear navigation to go back to the thumbnails. Here is an example on another theme: http://themenectar.com/demo/salient/portfolio/merchant/ Do you see how there are large arrows to go to the next post, and also an icon to go back to the thumbnails?
How can I build something like this in Enfold? I love the Ajax portfolio I currently have at https://www.flylanddesigns.com, but the problem is that it doesn’t work with Masonry.
December 6, 2017 at 7:52 am #885407Hey flylanddesigns,
Thank you for using Enfold
The theme has its own next and previous navigations which are located at the edge of the screen.
// https://kriesi.at/themes/enfold-2017/portfolio-item/ipad-iphone-freebie/
The link, going back to the portfolio page can be created manually via filter. Example.
add_action('ava_after_main_title', 'ava_link_to_portfolio_page'); function ava_after_main_title() { // code here }
Best regards,
IsmaelDecember 8, 2017 at 7:06 pm #886572Yes, but a major issue is that the next and previous arrows seem to navigate to the most recent Portfolio post in ANY category. What I would need is for it to navigate to the next portfolio post in that particular category. I have 6 different portfolios presented on different pages. When you click the next arrow, it brings you to another post that isn’t even being presented on that page. Is this something that can be controlled?
December 9, 2017 at 6:43 pm #886938Hi,
Yes, the navigation can filter posts from the same category. However, the posts should not be included on more than one category. Please add this code in the functions.php file.
add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod'); function avia_post_nav_settings_mod($settings) { if(is_singular('portfolio')) { $settings['taxonomy'] = 'portfolio_entries'; $settings['is_fullwidth'] = false; } $settings['same_category'] = true; return $settings; }
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.