Home Forums WoodMart support forum Show Sub Categories using Product Categories WP Bakery Block on Product Pages

Show Sub Categories using Product Categories WP Bakery Block on Product Pages

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #698663

    sfanous
    Participant

    Hi,

    How can I show sub categories as well as categories when using the Product Categories WP Bakery Block? Right now it only shows top level categories (see attached)

    I would like to display every category a product is in on the product page. Is their a better way to do this? I have the Product Categories WP Bakery Block showing the high level categories right now, but I would like it to show all the categories.

    Thank you,

    Steve

    Attachments:
    You must be logged in to view attached files.
    #698807

    Hello,

    Please share the page URL of the product page where product categories are added and share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.

    Best Regards,

    #698824

    sfanous
    Participant

    Added. Thank you!

    #698930

    Hello,

    It looks like the reason your categories are not appearing is because the “Hide empty categories” option is enabled in your Product Categories widget.

    If a category has no products assigned to it, it will be hidden.

    Please edit your Single Product Layout > Category widget, disable Hide empty, and then check again. After disabling it, all categories should become visible.

    Also, if you want to display the categories automatically based on the product, you can use the Product Meta widget in the layout. This widget shows all categories assigned to each product automatically on every product page.

    Best Regards,

    #699020

    sfanous
    Participant

    What I need has nothing to do with “Hide Empty Categories” because then all high level categories will be visible. I only want the categories that particular product is in to appear. I don’t want them all to appear.

    The Product Meta widget does show the categories that the product is in. It works exactly how I want it to work however I would like the category icon format to be displayed, like in the example I shared. The Product Meta Widget is only plain text.

    Is there a way we can add a hook to the function file to make the icons appear on product pages using the Product Meta Widget?

    Thank you

    #699175

    Hello,

    Unfortunately, the Product Meta widget only outputs plain text category links, and it does not support showing category images/icons. That icon-style layout is available only in the Product Categories WPBakery element, which displays categories statically — not dynamically based on the current product.

    WoodMart does not provide a built-in option or hook to replace the Product Meta output with category images. Adding icons would require custom PHP code to rebuild that widget’s output, which is outside theme support scope since the element was not designed for icons.

    Best Regards,

Viewing 6 posts - 1 through 6 (of 6 total)