I have template that has a main search field which is already enough for searching purposes. So the questions listing page has a second search box which is duplication and doesn’t look good. Is there a safe was to disable/hide the search box in the DWQA all questions page?
You can make a folder “dwqa-templates” in your theme’s folder, copy the file “<your-site-folder>/wp-content/plugins/dw-question-answer/inc/templates/default/archive-question.php” in to the folder “dwqa-templates” that you created before.
Then open “archive-question.php”, in <your-site-folder>/wp-content/themes/<your-theme-folder>/dwqa-templates”, remove the code from line 17 to 24
<form action="" class="dwqa-search-form">
<input class="dwqa-search-input" placeholder="<?php _e('Search','dwqa') ?>">
<span class="dwqa-search-submit fa fa-search show"></span>
<span class="dwqa-search-loading dwqa-hide"></span>
<span class="dwqa-search-clear fa fa-times dwqa-hide"></span>
Please let me know how it works when you are done.
Please login or Register to submit your answer