Home › Forums › WoodMart support forum › how I can remove it from search?
how I can remove it from search?
- This topic has 17 replies, 2 voices, and was last updated 2 weeks, 3 days ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
December 23, 2024 at 4:29 am #624559
ElenaParticipanthttps://prnt.sc/K4ZftUlWQb4X can you show me where I can remove this block?
December 23, 2024 at 6:09 pm #624849
Aizaz Imtiaz AwanKeymasterHello,
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.
December 23, 2024 at 8:07 pm #624897
ElenaParticipantI dont use child theme
December 24, 2024 at 1:06 pm #625058
Aizaz Imtiaz AwanKeymasterHello,
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.
December 24, 2024 at 7:00 pm #625171
ElenaParticipantI never use chilkd theme, do I have to use? can I add this code just functions.php file
December 24, 2024 at 7:30 pm #625176
ElenaParticipantso 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
December 25, 2024 at 4:34 am #625206
ElenaParticipantI add this code to child theme and give me critical error
December 25, 2024 at 4:41 am #625207
ElenaParticipantlook image
December 25, 2024 at 11:07 am #625242
Aizaz Imtiaz AwanKeymasterHello,
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
December 25, 2024 at 6:50 pm #625344
ElenaParticipantsent information
December 26, 2024 at 11:33 am #625436
Aizaz Imtiaz AwanKeymasterHello,
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.
December 26, 2024 at 5:33 pm #625522
ElenaParticipantthank 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.
December 27, 2024 at 2:01 am #625570
ElenaParticipantdo I need now activate child theme?
December 27, 2024 at 2:05 am #625571
ElenaParticipantI just activate theme and error still show on parent theme you only fix on child theme
December 27, 2024 at 2:21 am #625573
ElenaParticipantit 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.December 27, 2024 at 3:04 pm #625724
Aizaz Imtiaz AwanKeymasterHello,
Yes, I have added the code in the child theme and activated the child theme. Yes how it is works.
Best Regards.
December 27, 2024 at 4:18 pm #625758
ElenaParticipantthank you
you can closed this ticket nowDecember 28, 2024 at 10:20 am #625874
Aizaz Imtiaz AwanKeymasterMost 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. -
AuthorPosts
The topic ‘how I can remove it from search?’ is closed to new replies.
- You must be logged in to create new topics. Login / Register