gediweb
asked 4 years ago
  1. I’m trying to translate the placeholder on the questions page. The one that says “what do you want to know” I want to say “Find a Question” when I try with Loco translate, because its from english to english to sure how to do. It’s not working.
  2. I found the placeholder in inc/Template.php and changed it there, but it’s not changing on the front-end. How can I change what it says?
  3. Can I place Template.php in my theme? It’s not in template folder, so I wasnt sure
  4. Lastly, I’d like to move “Ask a question” button to the top. How can I do that? 
1 Answers
DominicStaff
answered 4 years ago

1/ You can add the search-form.php to the dwqa-templates/styles/default folder in your theme folder to translate it.
2/ Please let me know the string that you want to change in the inc/Template.php file. 
3/ You can not add the Template.php file in your theme to custom it. 
4/ You can custom the archive-question.php file then add the following code to the position that you want to show the button:

<div class="dwqa-questions-header">
<?php if ( dwqa_current_user_can( 'post_question' ) ) : ?>
<div class="dwqa-ask-question"><a href="<?php echo dwqa_get_ask_link(); ?>"><?php _e( 'Ask Question', 'dwqa' ); ?></a></div>
<?php endif; ?>
</div>
gediweb
replied 4 years ago

Thank you so much for the quick response! On #1, Cant find where search-form.php is located in the plugin.

Powered by DW Question & Answer Pro