• Resolved w7th

    (@w7th)


    When I share a brand/collection page, I would like the thumbnail I set to be used as the meta image.

    In the 3rd Party section under WooCommerece, the plugin allows us to use the category thumbnail as the meta image. Is there a way to change this from a category thumbnail to a brand/collection/custom taxonomy thumbnail instead?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter w7th

    (@w7th)

    Update: I was able to change it on line 300 of the “public/class-webdados-fb-open-graph-public.php”

    if ( $webdados_fb->is_woocommerce_active() && intval($this->options['fb_wc_usecategthumb'])==1 && is_product_category() ) {

    to

    if ( $webdados_fb->is_woocommerce_active() && intval($this->options['fb_wc_usecategthumb'])==1 && is_tax('product_brand') ) {

    But is there a way to do this with filters in my functions.php file of my child theme?

    You can use the fb_og_image filter and check for is_tax('product_brand') and then mimic our code.

    Anyway, we’ll add ‘product_brand’ tax support alongside the product category, in the next update, so if you enable the “Use Category thumbnail as Image” option, it also applies to WooCommerce Brands.

    Done on 2.2.2

    Thread Starter w7th

    (@w7th)

    Awesome, thanks so much!

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

The topic ‘Use Custom Taxonomy thumbnail as Image’ is closed to new replies.