-
AuthorPosts
-
April 16, 2014 at 4:23 pm #252182
Hey guys,
Is there a way to separate portfolio items in a manner that when we are on the item page under a certain category…the navigation to the left and right on the item page doesn’t lead into a new category from the portfolio item page…let me know if that makes sense :)Thank you!
Justin- This topic was modified 10 years, 8 months ago by Justin.
April 16, 2014 at 9:57 pm #252317oh you’re talking about the thing where it goes back and forward through posts right? If so I was wondering the same thing
April 16, 2014 at 10:39 pm #252324Yup…exactly. If we have a set of portfolio items that just displays men’s shoes for example. And there’s also a portfolio of women’s stilettos.
If a user is browsing through the men’s shoes via the ‘back and forward’ tab, with an interest only in men’s shoes…how do we get it to stop at the 1st or last pair of shoes for men, without it jumping into the portfolio of stilettos.April 17, 2014 at 12:45 pm #252643Hi!
Please refer to Peter’s post here – https://kriesi.at/support/topic/portfolio-link-arrows/#post-245040
Best regards,
YigitApril 17, 2014 at 2:39 pm #252717This reply has been marked as private.April 17, 2014 at 2:41 pm #252719Hi!
You can add it right below following line
avia_nav_menus(); //call the function immediatly to activate }
Cheers!
YigitApril 28, 2014 at 6:32 pm #257214Yigit, when I tried entering the code as you instructed above, the page breaks, and I get this message: Fatal error: Cannot redeclare category_specific_post_nav() (previously declared in /home/content/l/o/r/lorenasarbu/html/dev/wp-content/themes/enfold/functions.php:355) in /home/content/l/o/r/lorenasarbu/html/dev/wp-content/themes/enfold/functions.php on line 444
April 28, 2014 at 6:46 pm #257233Hey!
If you aren’t using a child theme then it would be added at the very start of the file after:
if(isset($avia_config['use_child_theme_functions_only'])) return;
. I think Yigit might have had a quick copy+paste from a different topic.
Best regards,
Devin- This reply was modified 10 years, 7 months ago by Devin.
April 28, 2014 at 6:59 pm #257248This reply has been marked as private.April 29, 2014 at 10:00 pm #257916If you are using a child theme then it can go right into the child theme.
What the function does is check the current portfolio item’s category and then limit navigation to that category. The advancement on the left/right is determined by the published date so you can move them around to change the order in which the user would navigate to them.
April 29, 2014 at 10:20 pm #257931Understood. This is all taken care of Devin.
Thanks! -
AuthorPosts
- The topic ‘Mobile navigation’ is closed to new replies.