Incompatible plugin - Missing Woocommerce-products-header

Hi X Team,

I’m trying to get this plugin working - WooCommerce Vehicle Parts Finder - Year/Make/Model/Engine/Category/Keyword. It is but with one issue. When in the plugin displays the results it creates a header that includes the searched for terms “Search results for:”.

But when it appears in on X theme the header doesn’t display the search for results. The plugin shows this in a header class=“woocommerce-products-header” which doesn’t seem to exist on x-theme.

I’ve checked using the twenty twelve theme and it displays when it’s activated.

Kind regards,

James

Hi James,

You could try creating woocommerce.php file in your child theme directory (check this guide if you haven’t child theme already) under this path:

/x-child/framework/views/renew/woocommerce.php

with the following code inside:

<?php

// =============================================================================
// VIEWS/RENEW/WOOCOMMERCE.PHP
// -----------------------------------------------------------------------------
// WooCommerce page output for Renew.
// =============================================================================

?>

<?php get_header(); ?>

  <div class="x-container max width main">
    <div class="offset cf">
      <div class="<?php x_main_content_class(); ?>" role="main">

        <?php if ( x_is_product() ) : ?>
          <?php x_ethos_entry_top_navigation(); ?>
        <?php endif; ?>        
        <header class="woocommerce-products-header">
          <h1 class="woocommerce-products-header__title page-title"><?php woocommerce_page_title(); ?></h1>
        <?php
        /**
         * Hook: woocommerce_archive_description.
         *
         * @hooked woocommerce_taxonomy_archive_description - 10
         * @hooked woocommerce_product_archive_description - 10
         */
        do_action( 'woocommerce_archive_description' );
        ?>
      </header>
        <?php woocommerce_content(); ?>        
      </div>

      <?php get_sidebar(); ?>

    </div>
  </div>

<?php get_footer(); ?>

As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation. And moreover, this solution may not work after several updates especially if the themes structure changed or overridden.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.