Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
523 views
in Q2A Core by
Hi

I have managed to remove the point system from my website, except "Score points) under profile.
I already tried tr#points{ display:none;}

Can someone tell me how to remove it where the code is located?

Thanks

Edwin
Q2A version: 1.7.1

1 Answer

0 votes
by

One hacky (but simple) method would be to put this at the end of qa-include/pages/user-profile.php just before return $qa_content

    unset($qa_content['form_activity']['fields']['points']);

The better method would be to override the form_fields method in your qa-theme.php. I think this should do it:

    public function form_fields($form, $columns)
    {
        unset($form['fields']['points']);
        parent::form_fields($form, $columns);
    }

Hope that helps.

...