Ansgar is correct, there's technically no way to disable favoriting. But you can hide the button so that for all intents and purposes it is disabled. Try this CSS:
.qa-favorite-button, .qa-unfavorite-button { display: none; }
Override public function page_title_error(), just comment out anything relate to "favorite".
public function page_title_error() { if (isset($this->content['title'])) { $favorite = isset($this->content['favorite']) ? $this->content['favorite'] : null; if (isset($favorite)) $this->output('<form ' . $favorite['form_tags'] . '>'); $this->output('<div class="qa-main-heading">'); $this->favorite(); $this->output('<h1>'); $this->title(); $this->output('</h1>'); $this->output('</div>'); if (isset($favorite)) { $formhidden = isset($favorite['form_hidden']) ? $favorite['form_hidden'] : null; $this->form_hidden_elements($formhidden); $this->output('</form>'); } } if (isset($this->content['success'])) $this->success($this->content['success']); if (isset($this->content['error'])) $this->error($this->content['error']); }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.