• Hi there,

    I’m currently using your plugin “Brands for WooCommerce” and having an issue with the result count text on the brand archive page.

    The phrase “including child brands” is being displayed, even though I have already customized the product query to exclude child brand products.

    I tried overriding the result-count.php file by copying it to my child theme under:
    /wp-content/themes/my-child-theme/brands-for-woocommerce/templates/result-count.php

    However, the plugin still uses the original template inside the plugin directory, and the override is not applied. I also tried editing the original file directly, but even small edits (like removing “including child brands”) are causing a critical error on the site.

    Could you please:

    1. Let me know the correct way to override result-count.php?
    2. Or let me know how to safely remove or edit the “including child brands” text without causing any errors?

    I would appreciate your help. Thank you so much in advance!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter loveangel1212

    (@loveangel1212)

    Hi

    I just wanted to let you know that the issue with the “including child brands” text has been resolved using a JavaScript workaround. Since overriding the result-count.php file didn’t work as expected, and CSS was also ineffective, I used JavaScript to modify the DOM after the page loaded.

    Everything is working perfectly now.

    If you consider adding an option to disable that phrase in a future version, I think it would help other users as well.

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    To override this template path must be themes/my-child-theme/woocommerce-product_brand/result-count.php

    Regards,
    Oleg

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cannot Override result-count.php or Remove “Including Child Brands”’ is closed to new replies.