- 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.
- 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?
- Can I place Template.php in my theme? It’s not in template folder, so I wasnt sure
- Lastly, I’d like to move “Ask a question” button to the top. How can I do that?
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:
<?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; ?>
Please login or Register to submit your answer