Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to override functions

+1 vote
234 views
asked Mar 15, 2013 in Q2A Core by anonymous

 

 

So just to test it out, from here http://www.question2answer.org/themes.php#theme 

I copy and pasted the example code to override functions...

		function nav_user_search() // reverse order from qa_html                _theme_base
		{
			$this->search();
			$this->nav('user');
		}

 

 

But it didn't change anything.  What gives? What am I doing wrong.  Thanks for any help.

 

Q2A version: latest

1 Answer

+2 votes
answered Mar 15, 2013 by jatin.soni
It didn't change anything becasue you are overriding with the same function and no change in that. I mean it is pasing the same method. Alignment and design is completely depends on CSS.
commented May 6, 2013 by Jax
It's not letting me choose best answer.  But thanks for answer, you were right!  Duplicate functions have been my prob.  thanks
commented May 6, 2013 by jatin.soni
Glad you got it works....! You are not able to choose an answer as a selected because you have asked question as an anonymous user and now you are trying with your account.. no worries as far as you got your answer.. :)
...