• Gio

    (@giothelawa)


    Can I change the ImageObject value in Woo JSON/LD structured data for taxonomies?

    I mean replace it with og:image value. My filter is rank_math/opengraph/{$network}/image and have not idea what’s a filter for the ImageObject URL in CollectinPage schema.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    Can I change the ImageObject value in Woo JSON/LD structured data for taxonomies?
    I mean replace it with og:image value.

    You mean to edit the JSON output before it get’s generated? We can try and help locate the relevant callback and see if there is filter to manipulate the arguments.

    Which JSON and which endpoint are you viewing / referring to?

    Thread Starter Gio

    (@giothelawa)

    Hi there,

    Woocommerce generates the structured schema for product taxonomies, that’s called CollectionPage structured data, and there is something wrong, image value always is the latest added products image, and it changes frequently when I add any new product.

    Please take a look at this screenshot for a bit reference: https://imgur.com/NLCCDS6

    It may be that we will have to use woocommerce_structured_data_product I don’t know exactly. Perhaps it comes from here

    Thank you.

    Thread Starter Gio

    (@giothelawa)

    Hey @conschneider

    I mean that, if I’d add a new product for the taxonomy, the ImageObject value will be changed with this product image value in this current taxonomy, and every new addition does the same. ImageObject value taxonomy changes and changes after each new product is added.

    Now I hope you have detailed information about the bug.

    Sorry for the delay, I had some problems.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change ImageObject value in Woo JSON/LD structured data for taxonomies?’ is closed to new replies.