Home Forums WoodMart support forum Modify elementor product categories element query

Modify elementor product categories element query

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #658827

    jimfarg
    Participant

    Dear Woodmart Team,

    I hope this message finds you well.

    We are currently using the Product Categories Carousel Elementor element on our website and would like to modify the query logic it uses to better suit our needs. I attempted to achieve this using Elementor hooks and custom queries, but unfortunately, these methods did not produce the desired results.

    As a workaround, we have edited the PHP file directly in the parent theme. We also tried replicating the file and its path in the child theme, but this approach did not take effect. For your reference, I have attached the modified file — the specific changes can be found on line 1062.

    While the current solution is working as intended, we are concerned that these changes will be lost with the next theme update. Could you kindly advise on the correct way to make such modifications permanent and update-safe?

    Thank you in advance for your assistance.

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

    Luke Nielsen
    Keymaster

    Hello,

    You need to add your custom code to an Elementor hook. Here’s a docs about the hooks:

    https://developers.elementor.com/docs/hooks/render-frontend-elements/
    https://developers.elementor.com/docs/hooks/render-widget-content/

    KInd Regards

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