• Resolved Jayaram Maharjan

    (@shovan_jaya)


    On theme folder located at blocksy/inc/components/woocommerce/archive/product-card.php on line no 122 there is add_action hook on ‘woocommerce_before_shop_loop_item_title’ with anonymous function. I would like to remove it by using remove action. How can I achieve this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author creativethemeshq

    (@creativethemeshq)

    @shovan_jaya Hello. This point was brought up before a couple of times already.
    In 80% of the cases, the underlying issue could be resolved in a different, cleaner way.

    If you will remove this action (especially the ones related to product cards) — most likely you will break some functionality from Blocksy and you will loose some backwards compatibility.

    If you could explain in a couple words what you want to achieve exactly, we will give you a cleaner solution, inline with our other features. Or, as a last resort, we will provide a way for you to perform the remove_action call.

    Hope this makes sense!

    Thread Starter Jayaram Maharjan

    (@shovan_jaya)

    Hello there,

    Yes, I would like to remove the image that is appearing from the theme on the shop page products. Product image is appearing twice one from this theme and one from a plugin. I would like to disable the image from the theme and use the image from plugin. It would be nice if you provide a suggestion to remove this product image from each product item on shop page.

    Thanks

    Theme Author creativethemeshq

    (@creativethemeshq)

    Hi @shovan_jaya,

    Thanks for your reply.

    May I know which action the plugin is using to add the image? Also, if you could provide the name of the plugin that does that, we might be able to implement an integration with it for the next update.

    Also, why you want to disable our image and leave the plugin? Does the plugin thumbnail provide more enhancements to the product card?

    Looking forward to your reply!

    All the best!

    I have the same issue, could you please share with me how you did it? thanks in advance.

    I would like to remove the image that is appearing from the theme on the archive page products because I’m offering documents for downloading, so there is no need for images in this case.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove action of anonymous functions defined in add_action hook?’ is closed to new replies.