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

Creating a responsive theme for Q2A, its customizable but spend lot of time for understanding it.

I found some useless things in the theme function like "using many usless form FORM". Due to form it is very hard to rearrange them for new layout. 

Anyway if anybody want to remove that, you can follow this step:

like if want to remove FORM from favourite button, find this in base theme file:

if (isset($favorite))
                $this->output('<FORM '.$favorite['form_tags'].'>');

and

if (isset($favorite))
                $this->output('</FORM>');

remove them.

and now simply paste this in advance theme file:

        function favorite_button($tags, $class)
        {
            if (isset($tags))
                $this->output('<A '.$tags.' CLASS="'.$class.
                    '-button" onmouseover="this.className=\''.$class.'-hover\';" onmouseout="this.className=\''.$class.'-button\';"> Favourite</A>');
        }

All done :-), Remember never edit base theme file, use you theme override file for customize.

Happy coding

Q2A version: latest

Please log in or register to answer this question.

...