Header images on WooCommerce Categories not appearing

I am using Woocommerce with the X theme, and have Banner Management for WooCommerce by Multidots as a plugin. It was working perfectly well before this latest update (yes, I regenerated thumbnails). Please advise how I can get header images on my product category pages. THANK YOU!

Hey there,

We are not exactly family with the banner management for the woocommerce plugin. Would you please kindly explain more about the details of the plug-in how you set stuff there and check if it is working correctly without our theme by changing the theme to something like 2017 Wordpress Theme.

Would you please also check from the developers of the plug in which book or filter they use to add their stuff so that we can make sure that it is available in our theme.

Needless to remind that third party plug-in compatibility is not part of our support policy but we always do our best to help our customers make things run smoothly.

We indeed changed the way our theme handles woocommerce images in the latest update. You can read about these in our changelog:

https://theme.co/changelog/#theme-x-5-1-1

We actually took away our custom code and used the woocommerce original thumbnail and image handling system.

Thank you.

I heard back from the Plug-in company, and they feel that the source issue is in the theme. Here is what they said:
“Contact the theme developer again and tell them to look over this “woocommerce_before_main_content” action.
Maybe, they have overridden that action in the theme and changed the priority of it. That’s why it is not displaying on the website. You can contact them again and tell them to change the priority of it.”
Is this a possibility, or is there a way that I can make that happen via php?

I submitted a note over 24 hrs ago. Please advise, as my client is very frustrated that headers are not displaying on the product page when we are trying to push visitors to the pages with paid promotions.
I have multiple licenses of this theme and have paid for support. Please let me know how I can get headers on the WooCommerce pages (again, it was working just fine prior to the most recent update).
Thank you!

Hello There,

Thanks for updating in! Just for future topics, self responding or bumping your post pushes it back in our Queue system so it takes longer to respond to.

Are you using CloudFlare or may have installed a caching plugin like WordFence, W3 Total Cache or WP Super Cache? Please keep in mind that after doing every updates, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

If nothing else works, to assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

Best Regards.

I have cleared cache a number of times…
I’ve found another solution on my own (using another plug-in, which is pretty sluggish to the site). It seems that there is some issue with the update that keeps this common plugin from working. Again, it was working fine prior to the update.

Hello There,

Thanks for updating in! ​To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password
​
Thank you.

I’m having the same problem - banners not appearing - any update on this?

Hi there,

It’s more like Woocommerce standard’s issues, since customization could be done in multiple ways. Please check this https://docs.woocommerce.com/document/third-party-custom-theme-compatibility/

Our theme uses <?php woocommerce_content(); ?> as part of integration instead of hooks. But I agree that most hooks should be used.

The woocommerce_before_main_content is commonly called in single-product.php and archive-product.php in which our theme doesn’t have since the integration is through woocommerce.php and woocommerce_content().

The solution is, of course, using the hook woocommerce_before_single_product since it’s called regardless of the type of integration.

Thanks!

1 Like

Thanks, but this is still pretty confusing for me.

The link you sent includes the following code, to be added to functions.php.

remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);

add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);

function my_theme_wrapper_start() {
  echo '<section id="main">';
}

function my_theme_wrapper_end() {
  echo '</section>';
}

Any idea how I could I adapt this so that it’s relevant for this case?

Hi @weejimmyhat,

Please note not to share credentials if you are not the original poster on the thread because secure note content is visible to the original poster too aside from the staff. I have remove the credentials. Feel free to change it.

Regarding your question, for that to work on category page, you may need to add is_product_category() filter on the code. For further help, please check in with the plugin developer.