Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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!

    #398065

    Hey MattLalande!

    Please edit your portfolio item and edit hierarchy as needed – http://i.imgur.com/Hk1mp4K.png

    Best regards,
    Yigit

    #399802

    Hi 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

    #400245

    Hey!

    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,
    Andy

    #400888
    This reply has been marked as private.
    #401287

    Hi!

    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,
    Ismael

    #401803

    Hi 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.

    #402470

    Hi!

    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!
    Ismael

    #404205

    Thanks 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

    #404978

    Hi!

    Did you change the id “459” to the id of the “My Work” page?

    $page = get_post(459, ARRAY_A);
    

    Cheers!
    Ismael

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.