Anik
asked 6 years ago

Finally, I installed DW Q&W on my live site after test driving it on my sandbox. I may come with issues which i will ask about here.
At first its coming to mind how to add a header something like DW have in its homepage.
(like 
Questions
Where WordPress Questions get Best Answers)
I know that the page title is the Q&A title, but what i want to do is that this display on both homepage and question page. Both header & it’s subheader and i want that header to be hyperlinked to Q&A homepage.
How to do it and keep it good after an update for the plugin.
Thanks
Anik

3 Answers
Guru
answered 6 years ago

Hi Anik,

You are already familiar with the theme integration guide: Please refer to the style integration guide: http://designwall.com/guide/dw-question-answer-plugin/#Style_integration
If you have all your theme styles in your theme subfolder dwqa-templates these should be safe from any updates. And if you want to add the titles you can add the code in the content-start-wrapper.php file in the header where you have the H1 tag, just add an H2 based on the conditional statement that its is a question listing page or a submit page. The rest is just css.

Anik
answered 6 years ago

Happy Holi to all of you guys!
Thanks for your answer Guru. I can already alter the title of this 3 pages by changing this files single-question.php, content-start-wrapper.php, submit-question.php
But if I do this an update will erase everything. In my theme the’dwqa-templates’ folder has the file content-start-wrapper.php which can change the homepage & submit question page header, not the single question page. Should i copy some files in this folder to add something to the header?
I also have seen declarations for header like <?php get_header(dwqa‘); ?>, Where this header file resides?
What I want to do is to make a titte for question listing page and single question page. (Somewhat “Question”) & another one for Submit page (like “Ask a question”)
I think it’s not that tough.
Thanks!

Guru
replied 6 years ago

You can add the single-question.php file to the theme subfolder to make sure its update proof too, and any other files in your plugin template file can also be copied to your theme subfolder to make it update proof.

Anik
replied 6 years ago

Okay, but do you know where the < ?php get_header(‘dwqa‘); ?> resides?

Anik
answered 6 years ago

Update: Solved it by editing the theme’s header.php file.

Guru
replied 6 years ago

Glad to hear, you managed to fix it.

Powered by DW Question & Answer Pro