iLia Fresco
asked 6 years ago

I can see that i can tic checkbox and disallow Private questions. Can I do the opposite?
I am hoping i can use this plugin for private one-on-one support, so i dont want user to get confused if she/he forgets to select “Private” in the dropdown.

Ideally I would like to have – Public Category and Private Category, disabling corresponding options per category.

1 Answers
DominicStaff
answered 6 years ago

Sorry about previous answer, it’s not clearify and miss my solution for your question. I mean the plugin does not support to have – Public Category and Private Category, disabling corresponding options per category. Sorry about that, my friend.

iLia Fresco
replied 6 years ago

I am sure, this could be done via CCS – some statement that would hide the selection of Public Question when cat-name “Private” is true.
I am not a coder, but have a principle understanding of the way things can work πŸ™‚

Dominic Staff
replied 6 years ago

If you want to remove the public question when user create a question you can open the submit-question-form.php file and remove the following code – line 25:

<option value="publish"><?php _e( 'Public', 'dwqa' ) ?></option>

Also, if you want remove the public answer, you can open the answer-submit-form.php file and remove the line 34.

Note: You can create a dw-templates folder in your theme folder then copy/ paste 2 file into this folder and remove the code, Because you will don't need change again after update the plugin.
If you have any issue or question , please let me know, I will check and help you resolve it and certainly will not be confused πŸ˜€

Hope this helps

iLia Fresco
replied 6 years ago

can I do that using CSS?

also – what is the logic? why do I need to remove Public Answer? – If I post a Private Question – I should not be able to post Public Answer to it by default…

Dominic Staff
replied 6 years ago

In this case, if you want to use the CSS. In general, you can't. This element is rendered by the OS, not HTML. It cannot be styled via CSS. There are replacement plug-ins that look like a SELECT, but are actually composed from regular HTML elements that CAN be styled.
In this case, you can add the element style in the code:

<option style="display:none;" value="publish"><?php _e( 'Public', 'dwqa' ) ?></option>
About the remove Public Answer, just suggestion when you want to remove it.

Powered by DW Question & Answer Pro