Missing breadcrumbs, fixing breadcrumbs and page title on dynamic WCFM pages

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Feature Request Missing breadcrumbs, fixing breadcrumbs and page title on dynamic WCFM pages

Viewing 10 reply threads
  • Author
    Posts
    • #74582
      Jonny H DOG
      Participant

      Hi 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

    • #74583
      Jonny H DOG
      Participant

      Forgot to insert the images

      Attachments:
      You must be logged in to view attached files.
    • #74979
      WCFM Forum
      Keymaster

      Hi,

      Which theme you are using for the site?

      Thank You

    • #75001
      Jonny H DOG
      Participant

      Hi there,

      Thanks for the prompt response!

      We are using Woodmart

      Thanks

    • #75002
      Jonny H DOG
      Participant
      This reply has been marked as private.
    • #75156
      WCFM Forum
      Keymaster

      Hi,

      NO worries, we will add this compatibility in next update.

      Thank You

    • #75174
      WCFM Forum
      Keymaster

      Hi,

      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

    • #75288
      Jonny H DOG
      Participant

      That 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 store

      We are writing a review for your amazing service on WordPress. Thank you so much for supporting your plugin.

    • #75289
      Jonny H DOG
      Participant
      This reply has been marked as private.
    • #75782
      WCFM Forum
      Keymaster

      Hi,

      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

    • #78232
      Jonny H DOG
      Participant

      Hi 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.
Viewing 10 reply threads
  • The topic ‘Missing breadcrumbs, fixing breadcrumbs and page title on dynamic WCFM pages’ is closed to new replies.