Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #36362

    Hillary
    Participant

    iron.cunninghamadv.com

    I put the breadcrumbs on the shop and hid them on my other pages but the links are not working?

    #36590

    Christian
    Moderator

    Hey Hillary,

    The reason why it doesn’t work is because the breadcrumbs is invisibly covered by the navbar area. To fix it, in the Customizer > Custom > CSS, please add the code below.

    .x-navbar-static-active .x-navbar .x-nav > li, .x-navbar-fixed-top-active .x-navbar .x-nav > li {
    height: 60px;
    }
    
    .x-navbar {
    padding-bottom: 25px;
    }

    Hope that helps. 🙂

    #36744

    Hillary
    Participant

    Worked like a charm! Thank you!

    #36881

    Hillary
    Participant

    For some reason my portfolio page is not showing nested in the breadcrumbs after you go to an individual project. The breadcrumbs seem to work throughout the shop in the correct way.

    Also, is there a way to add “related projects” or anything else underneath the “share this project” area?

    #36978

    Support
    Member

    Hi Hillary!

    Nice website.

    Please try to upgrade to WP 3.9 then update the theme to 1.8.3. Flush the permalink on Settings > Permalink. Just click the “Save” button once.

    Cheers!

    #37163

    Hillary
    Participant

    I updated everything and flushed the permalinks! It’s still not working. Do the breadcrumbs recognize categories as well? Is there something else I can do to fix it?

    #37329

    Support
    Member

    Hi Hillary!

    I’m sorry about that, please post the login details here and set it as a private reply. We would like to check your installation.

    Cheers!

    #38070

    Hillary
    Participant
    This reply has been marked as private.
    #38505

    Alexander
    Keymaster

    Hi Hillary,

    I’m sorry, the breadcrumbs won’t be able to show the shop categories.

    It looks like there’s a problem with your .htaccess file, which is preventing any permalinks other than default.

    Go to Settings > Permalinks, and choose “Post Name” then hit save.

    Scroll to the bottom, and WordPress will tell you what you need to place in your .htaccess file. Once this is in place, the permalinks should start working and we can revisit the portfolio breadcrumbs issue.

    #38545

    Hillary
    Participant

    Alright, I’m back and I think I have it fixed. Breadcrumbs still aren’t working but the .htaccess file is where it needs to be! What’s the next step?

    #38754

    Support
    Member

    Hi Hillary!

    Thank you for using the theme.

    Please edit framework > functions > global > breadcrumbs.php, find this code on line 84:

    } elseif ( function_exists( 'is_product' ) && is_product() ) {
              echo $shop_page_link . $delimiter . ' ' . $before . $page_title . $after;

    Replace it with:

    } elseif ( function_exists( 'is_product' ) && is_product() ) {
    		  global $product;
              $product_id = get_the_ID(); 
    		  $product_terms = get_the_terms( $product_id, 'product_cat' );
    
    			$product_cat = array();
    		
    			foreach ( $product_terms as $product_term ) {
    				$product_cat[] = $product_term->name;
    			}
    
              echo $shop_page_link . $delimiter . ' ' . $product_cat[0] . ' ' . $delimiter . $before . $page_title . $after;

    This will echo out the fist product category.

    Cheers!

    #39102

    Hillary
    Participant
    This reply has been marked as private.
    #39182

    Support
    Member

    Hi there!

    Thank you for the update.

    The code above is for adding the category on the shop breadcrumb. Add this on Customizer > Custom > CSS to adjust the layer position of the breadcrumbs container:

    div.x-breadcrumb-wrap {
    z-index: 9999;
    position: relative;
    }

    Cheers!