-
AuthorPosts
-
February 17, 2015 at 3:59 am #397215
Hello. I’m currently running 2 separate portfolio grids on my website, one on the homepage (http://www.mattlalande.com/) and one on the Photography page (http://www.mattlalande.com/photography/).
The breadcrumbs on the photography page seem to work fine, but when i open up an item out of the homepage grid, my breadcrumbs show it’s parent as “photography”, instead of “my work”, which is the parent i’ve selected in the parent dropdown within the CMS.
It does seem like if i use an alternative method of displaying my images in the photography page the issue disappears, but that’s not ideal.
Any suggestions?
Cheers!
February 18, 2015 at 1:00 pm #398065Hey MattLalande!
Please edit your portfolio item and edit hierarchy as needed – http://i.imgur.com/Hk1mp4K.png
Best regards,
YigitFebruary 20, 2015 at 6:35 pm #399802Hi Yigit,
Thanks for the reply.
I’ve already tried that, and it’s set to “My Work” but it’s still displaying “Photography”.
Any other suggestions?
Thanks
Matt
February 22, 2015 at 6:36 pm #400245Hey!
do you mind providing us a temporarily admin account? so we can take a deeper look into your breadcrumbs settings.
Post login details here as a private reply.Regards,
AndyFebruary 23, 2015 at 6:28 pm #400888This reply has been marked as private.February 24, 2015 at 11:18 am #401287Hi!
I tried to access the site but the login credentials are incorrect. Please check. Add this to the functions.php file to disable the breadcrumb trail which shows the previous page before you get to the portfolio page. It will enable or show the actual portfolio categories:
add_action('after_setup_theme','avia_remove_portfolio_breadcrumb'); function avia_remove_portfolio_breadcrumb() { remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb'); }
Regards,
IsmaelFebruary 25, 2015 at 12:46 am #401803Hi Ismael,
Thanks for sending that through!
Those login details should be working now, apologies for that.
I’ve successfully got that working, but is there a way to use the page title “My Work” instead of the category?
Thanks.
February 26, 2015 at 6:50 am #402470Hi!
Maybe this will help:
add_filter('avia_breadcrumbs_trail', 'avia_change_breadcrumb', 20, 1); function avia_change_breadcrumb($trail) { if(is_singular('portfolio')) { $home = avia_get_option('frontpage'); $last = array_pop($trail); $page = get_post(459, ARRAY_A); $page = '<a href="' . $page['guid'] . '">' . $page['post_title'] . '</a>'; $trail = array(0 => $home, 1 => $page, 'trail_end' => $last); } return $trail; }
Change the id of the get_post function to the id of the “My Work” page.
Cheers!
IsmaelMarch 2, 2015 at 1:26 am #404205Thanks Ismael, but bot quite, i got “You are here: / / post title 2”
Looks like it removed the path and added a “2” to the end, did i do something wrong? I just added the above to functions_enfold.php.
Cheers
Matt
March 3, 2015 at 7:57 am #404978 -
AuthorPosts
- You must be logged in to reply to this topic.