Apple Rinquest
asked 6 years ago

Hi,
 
I have a strange issue for the link for tags archive page. 
I click on a tag then it goes to this link (http://localhost/xxxx/dwqa-questions/question-tag/participant-problem/). participant-problem is the tag. The content on tag page, it displays correctly. But a few second the link changes to http://localhost/xxxx/dwqa-questions/ while the content doesn’t change. I expect the link should be still http://localhost/xxxx/dwqa-questions/question-tag/participant-problem/
It seems it changes automatic somehow. Any idea for the solution?
 
Many thanks,
Apple

Apple Rinquest
replied 6 years ago

Also I try to change the single-tag slug from the DWQA setting. The problem is still the same.

3 Answers
DominicStaff
answered 6 years ago

We need to check your site to fix this issue, please send me username & password of your site (via private answer) for further checking.
Regards,

DominicStaff
answered 6 years ago

Hi,
Apologies for the delay in replying to you.
To resolve the issue with the Tags link, you can send me your FTP, we will check and help you resolve it.
Also, If you want to use the textarea element instead of rich text editor for the answer,  you can open file dw-question-answer/inc/template-functions, find line 185 – 195
See the screenshot: http://prntscr.com/5pvfcz

Replace with the following code:
<textarea class=”wp-editor-area” rows=”10″ autocomplete=”off” cols=”40″ name=”answer-content” id=”dwqa-answer-question-editor”></textarea>

Hope this helps !

Apple Rinquest
replied 6 years ago

The textarea is working perfectly. THANK YOU SO MUCH.

Apple Rinquest
replied 6 years ago

Hello,I just found after I change ‘rich text editor’ to ‘textarea’ for the answer. The edit feature for the question stops working. I see the error =>dwqa-single-question.js:881 Uncaught ReferenceError: getUserSetting is not definedDo you have any solutions for this issue? Do you have any suggestions?Many thanks,Apple

BigHug
answered 6 years ago

Hi Apple,
Sorry for being late in reply. I have checked your site and removed the codes that you added to, because DWQA must use richtext editor to get and add new content. I have recovered richtext editor and as you can see, the text editor field look like a text area without any button. Is this solution ok for you?
Regards,
Rambu

Apple Rinquest
replied 6 years ago

Hi BigHug,Thank you for reply. I added the CSS to hide the toolbar and p at the bottom for the rich text editor. And yes, it looks like the text area. But I notice on Chrome, when users click on text area, the typing cursor won’t appear. But if the users click on the first line on text area where p element is, the typing cursor appears. On Firefox, there is no problem with cursor appearing.My customer concerns that the users(mostly non-IT people) might confuse when they click on text area and no typing cursor appears on Chrome. So they might think they can not type on text area. That’s why I asked to replace the rich text editor with text area.You can see the cursor appearing issue on your site. For example, “Answer this Question” box that uses the rich text editor. When you uses on Chrome, you have to click the mouse on the first line of text area only. Then the typing cursor appears.ThanksApple

BigHug
replied 6 years ago

You can add a css line “html, body { height: 100%; }” into your /dw-question-answer/assets/tinymce.css file and it will make your editor clickable anywhere

Apple Rinquest
replied 6 years ago

YES! you are the best. Thank you so much, BigHugThank you.

BigHug
replied 6 years ago

You are welcome 🙂

Powered by DW Question & Answer Pro