Home Forums WoodMart support forum how I can remove it from search?

how I can remove it from search?

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #624559

    Elena
    Participant

    https://prnt.sc/K4ZftUlWQb4X can you show me where I can remove this block?

    #624849

    Hello,

    Please add the following custom code to the functions.php file of the child theme:

    add_action(‘woodmart_show_required_in_search_form’, ‘__return_false’);

    Best Regards.

    #624897

    Elena
    Participant

    I dont use child theme

    #625058

    Hello,

    You should install the child theme first:
    https://xtemos.com/docs-topic/setup-child-theme/

    Then use the code in the child theme because it will be safe and secure and you will not lose the changes after the theme update in the future.

    Best Regards.

    #625171

    Elena
    Participant

    I never use chilkd theme, do I have to use? can I add this code just functions.php file

    #625176

    Elena
    Participant

    so if I add this code functions.php file of the child theme its automatic be work on parent theme or I do need update install or.. never worked before with child theme because I always have hourly backup plan

    #625206

    Elena
    Participant

    I add this code to child theme and give me critical error

    #625207

    Elena
    Participant

    look image

    #625242

    Hello,

    Sorry to hear about the inconvenience. Kindly, please 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. Also, share the FTP logins as well.

    Best Regards

    #625344

    Elena
    Participant

    sent information

    #625436

    Hello,

    Your issue has been solved. I have added the correct with some corrections in the child theme’s functions.php file. Please check it now after removing the browser cache.

    add_action('woodmart_show_required_in_search_form', '__return_false');

    Best Regards.

    #625522

    Elena
    Participant

    thank you for your help
    it works now
    can you tell me why when I add code it show critical error?

    • This reply was modified 2 weeks, 4 days ago by Elena.
    #625570

    Elena
    Participant

    do I need now activate child theme?

    #625571

    Elena
    Participant

    I just activate theme and error still show on parent theme you only fix on child theme

    #625573

    Elena
    Participant

    it works now thank you
    I understood I shuld look code on child theme ( where theme support modify all information) and add same code to parent theme on functions.php, I just never worked before with child theme, I guess this how works.

    #625724

    Hello,

    Yes, I have added the code in the child theme and activated the child theme. Yes how it is works.

    Best Regards.

    #625758

    Elena
    Participant

    thank you
    you can closed this ticket now

    #625874

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

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

The topic ‘how I can remove it from search?’ is closed to new replies.