Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #238755

    Hello

    I am using Fullwidth Masonry on the frontpage to show the latest items on a site i am working on. Clicking an item in the fullwidth masonry takes you directly to the item however, the breadcrumbs are wrong. Each item when accessed via the frontpage will appear to belong to the category “Everything else”, which is not the case. If you go to the same item using the main navigation and selecting the category and then the item, everything is fine.

    Can anyone tell me what I have done wrong?

    You can see the site here: Site

    • This topic was modified 10 years, 9 months ago by Frostholm. Reason: No change made
    #239813

    Hey Frostholm!

    I’ve found different categories assign to the same item, for instance.

    You are here:Home / Antiques / Other Tables / Edwardian Fold Over Side Table
    http://frostholm.co.uk/portfolio-item/edwardian-fold-over-side-table/

    You are here:Home / Antiques / Everything Else / Edwardian Fold Over Side Table
    http://frostholm.co.uk/portfolio-item/edwardian-fold-over-side-table/

    Please, go ahead and check on the post and see if by mistake you assign this categories.

    Nice looking products you got in there ( in btw ).

    Cheers!
    David

    #241687

    Hi David

    Sorry about the late reply. I have now moved on to work on the clients server and currently setting everything up. I am having same problem here:
    When I click an item on the masonry blog on the front page the breadcrumbs shown on the item site is wrong. ex it will say:
    You are here: Home / Home / Distressed Leather Fireside Chair

    The same happens if I don’t use the masonry blog and instead go through the main nav and click “Antiques” and choose “Seating” and the choose the chair I am using in this example.

    It seems any category name is replaced with “Home” in the breadcrumbs.

    Sorry if this is all a but confusing. Believe me its the same to me:
    basically the breadcrumbs for this item should say:

    “You are here: Antiques / Seating / Distressed Leather Fireside Chair”
    If you use the link in the masonry blog on the frontpage or use the main nav the breadcrumbs should be the same.

    I hope you can help. The site is here

    Cheers

    #241948

    Hey!

    The breadcrumb does not follow the menu arrangement if that is what you’re expecting. Please add this on functions.php:

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

    Best regards,
    Ismael

    #242098

    Hey Ismael

    Does the code you posted remove the breadcrumbs all together or change it so that breadcrumbs follow the menu arrangement.

    What do you suggest i do here. Of course i want the breadcrumbs to show this no matter which way you take to get to the item:

    You are here: Antiques / SUBCATEGORY / ITEM

    #242567

    Hi!

    WordPress doesn’t know which “masonry page” is the parent page of a “single portfolio entry” because the masonry grid is actually just a shortcode which is embedded into the content of a page. Kriesi found a workaround and Enfold stores the id of the parent portfolio/grid page into a session.

    I.e. if the user first views this portfolio grid page (http://frostholm.co.uk/portfolio/bedroom-furniture/ ) the server will save the page id into the session and as soon as the user views the single portfolio entry (i.e. http://frostholm.co.uk/portfolio-item/edwardian-dressing-stand/ ) Enfold uses the session data and the saved page id to build the breadcrumb (You are here:Home / Antiques / Bedroom Furniture / Edwardian Dressing Stand). If the user accesses the portfolio entry from another portfolio page: i.e. from http://frostholm.co.uk/ it does not save the parent page id and the breadcrumb will be wrong. Note that you need to clear the browser cache to remove the session data if you want to test this.

    You’ve two options:

    1) Make sure that the same portfolio items are not part of several masonry grids and remove the masonry grid from the homepage.

    2) Use the code I posted here: https://kriesi.at/support/topic/breadcrumbs-with-portfolio/ – then the breadcrumb will just the portfolio categories of the current entry and by going this way the breadcrumbs will always have the same structure regardless of the masonry gridpage/location. However you can’t show the masonry page link in the breadcrumb because the breadcrumb will just list the categories of the current portfolio entry.

    Best regards,
    Peter

    #242795
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Breadcrumbs not showing correct path’ is closed to new replies.