Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM – Feature Request › Missing breadcrumbs, fixing breadcrumbs and page title on dynamic WCFM pages
- This topic has 10 replies, 2 voices, and was last updated 5 years, 10 months ago by
Jonny H DOG.
- AuthorPosts
- July 31, 2019 at 3:35 am #74582
Jonny H DOG
ParticipantHi there,
Our theme (Woodmart) generates a static page title for all pages. Some of the WCFM pages are not displaying correctly,they are missing breadcrumbs and in some cases like the store title, it is missing. We have attached 3 sets of screenshots outlining the 3 different cases of this issue.
Woodmart will let us turn this feature off on a page by page basis but the pages it is broken on are also pages that are dynamically generated and I cannot turn off the broken banner. Its driving me crazy!Can we force breadcrumbs and a title for all of WFCM pages? Or if not how would we turn it off for the broken ones?
We have a child theme so are happy to try any custom code.
Thanks
- July 31, 2019 at 3:41 am #74583
Jonny H DOG
ParticipantForgot to insert the images
Attachments:
You must be logged in to view attached files. - August 3, 2019 at 7:33 am #74979
WCFM Forum
MemberHi,
Which theme you are using for the site?
Thank You
- August 3, 2019 at 9:11 am #75001
Jonny H DOG
Participant - August 3, 2019 at 9:12 am #75002
Jonny H DOG
ParticipantThis reply has been marked as private. - August 4, 2019 at 9:27 am #75156
WCFM Forum
MemberHi,
NO worries, we will add this compatibility in next update.
Thank You
- August 4, 2019 at 10:40 am #75174
WCFM Forum
MemberHi,
Please use this code for the purpose –
add_action( 'woodmart_after_header', function() { if( !function_exists( 'wcfm_is_store_page' ) || ( function_exists( 'wcfm_is_store_page' ) && !wcfm_is_store_page() ) ) return; $wcfm_store_url = get_option( 'wcfm_store_url', 'store' ); $wcfm_store_name = apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) ); if ( empty( $wcfm_store_name ) ) return; $seller_info = get_user_by( 'slug', $wcfm_store_name ); if( !$seller_info ) return; $store_user = wcfmmp_get_store( $seller_info->ID ); $store_info = $store_user->get_shop_info(); $style = ''; $title_size = woodmart_get_opt( 'page-title-size' ); $title_color = woodmart_get_opt( 'page-title-color' ); $title_design = woodmart_get_opt( 'page-title-design' ); $title_class = 'page-title-'; $title_class .= 'default'; $title_class .= ' title-size-' . $title_size; $title_class .= ' title-design-' . $title_design; $title_class .= ' color-scheme-' . $title_color; ?> <div class="page-title <?php echo esc_attr( $title_class ); ?> title-shop" style="<?php echo esc_attr( $style ); ?>"> <div class="container"> <div class="nav-shop"> <div class="shop-title-wrapper"> <h1 class="entry-title"><?php echo apply_filters( 'wcfmmp_store_title', $store_info['store_name'], $store_user->get_id() ); ?></h1> <div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#"> <?php woodmart_current_breadcrumbs( 'shop' ); ?> </div> </div> </div> </div> </div> <?php });
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- August 5, 2019 at 9:15 am #75288
Jonny H DOG
ParticipantThat is very impressive, thank you very much for taking the time to write it. Unfortunately the code is not working and the page has vanished completely. I suspect you would have a higher chance of fixing the issue if you could see the problem first hand. This issue occurs on several pages:
-store manager
-marketplace
-vendor storeWe are writing a review for your amazing service on WordPress. Thank you so much for supporting your plugin.
- August 5, 2019 at 9:20 am #75289
Jonny H DOG
ParticipantThis reply has been marked as private. - August 8, 2019 at 3:46 pm #75782
WCFM Forum
MemberHi,
Thanks for the access. I have make this working – https://ibb.co/NtVwqNZ
Well, I have remove code form child theme’s functions.php and added using code snippet addon.
Thank You
- August 25, 2019 at 6:12 am #78232
Jonny H DOG
ParticipantHi again and thank you so much for looking into this issue for us. The only issue I have now is there are 2 copies of the bar on the store pages! 1 Working copy and the broken one as well..
See screenshot 1
The way the theme is meant to display it is shown in screenshot 2
Thank you for all of your time.
Attachments:
You must be logged in to view attached files.
- AuthorPosts
- The topic ‘Missing breadcrumbs, fixing breadcrumbs and page title on dynamic WCFM pages’ is closed to new replies.