Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #205182

    This functionality looks like it’s done with some kind of dynamic process, but does not work correctly anywhere. I’ve disabled the breadcrumbs on everything but the items called by galleries (here):

    http://subterranea.net/vusa2/vanities/

    But with both the next/last buttons, and the breadcrumbs, what is called is totally arbitrary. For the breadcrumbs, it randomly chooses a page as a parent. There is no apparent pattern to it. and with the last/next buttons, it chooses a portfolio item in an equally random fashion.

    This functionality is great, or it would be if it worked… Any ideas of what’s happening?

    #205289

    Thanks so much for the response! I tried to respond to the email, but it bounced.

    That worked!

    Is there a way to do the same for the forward/next buttons? to keep them in the same category? They jump around from category to category. I thought those would stay in the group from the gallery that linked to them, but I think they might be going by post date.

    #205292

    Hi hughjames!

    Actually the page is not random but it depends on the masonry grid items. If the entry (i.e.: http://subterranea.net/vusa2/products/caroline-avenue-gd-50060/ ) is part of the masonry grid ( http://subterranea.net/vusa2/vanities/ ) the breadcrumb will show a link to the masonry grid page ( Home / Vanities / Caroline Avenue GD-50060). If the entry is not part of the masonry grid (i.e. http://subterranea.net/vusa2/products/alexis-ps-265/ ) it will show a link to the product category instead (Home / Faucets / Alexis PS-265). You’ve two possibilities.

    1) Since WP3.8 and Enfold 2.4.4 you can restrict the prev/next entry button to the same category of the current post. If you want to activate this feature insert following code into your child theme functions.php file or insert it at the bottom of enfold/functions.php:

    
    add_filter('avia_post_nav_settings','avia_remove_fullwidth_slider_check', 10, 1);
    function avia_remove_fullwidth_slider_check($settings)
    {
    $settings['same_category'] = true;
    return $settings;
    }
    

    2) Or deactivate the “masonry page” breadcrumb link – then all entries will show a link to the product/portfolio category and the breadcrumb will be consistent for all entries. In this case insert following code into your child theme functions.php file or insert it at the bottom of enfold/functions.php:

    
    add_action('after_setup_theme','avia_remove_portfolio_breadcrumb');
    function avia_remove_portfolio_breadcrumb(){
    remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb');
    }
    

    Regards,
    Peter

    #205297

    You’re amazing. That worked perfectly too.

    I have one other Masonry question:

    Would it be possible to use a WordPress menu as the selecting element for the Masonry filtering?

    This one is more complex. I think I would need to extend the Masonry to choose a WordPress Menu (as opposed to the taxonomy choices), and do a little CSS tweaking, but that seems like the easiest way to order the terms hierarchically rather than alphabetically.

    This is a big issue for the client, as they want to have 100+ items and maybe 20 filter criteria. Multiple taxonomy filters would be ideal, but just being able to order them would help greatly.

    #205302

    Hi!

    No, you can’t use the menu for the masonry filter without a heavy theme code customization. Ifyou really need such a feature I recommend to hire a freelancer. However you can try this plugin: http://wordpress.org/plugins/taxonomy-terms-order/ to order the categories/terms and this plugin: http://wordpress.org/plugins/post-types-order/ to order the entries of the portfolio post type or standard posts, etc.

    Regards,
    Peter

    #205309

    Thanks! I’ll check those out. That might actually solve the problem without needing to modifying the Masonry (something I want to avoid in the interest of update compatibility).

    I really appreciate the quick response. You’ve been incredibly helpful.

    -Hugh

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Breadcrumbs and last/next buttons do not function correctly.’ is closed to new replies.