Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
771 views
in Q2A Core by
retagged by
Hi. Until now i made some changes on my advanced theme qa-theme.php adn everything is pretty good. What i want to do now is to add a different backround on the admin page for unlogged user.

And my question is how can i create a condition like this on my qa-theme.php file ??:

If {admin is not logged in
<div class=""></div>
}
else
bla bla bla bla

I tried to find a function for that inside qa-theme-base.php file so i can override that function on my qa-theme file but didnt find anything.

Could you please help me ??

Thanks
Q2A version: 1.6.x

1 Answer

0 votes
by
selected by
 
Best answer

You are looking for user role. Please tag your question with role to help others.

The answer to your question is this http://www.question2answer.org/qa/49873/how-can-i-push-the-q2a-user-role-into-a-javascript-variable?show=49927#a49927

...