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

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

how to add a logo hover in my image logo?

0 votes
i want to add a image logo hover to my image logo, but in admin panel i just found a place to add my logo image only.... anybody know how to add a hover?? thanks...
asked Sep 2, 2011 in Q2A Core by nono

2 Answers

0 votes
Well I am not sure but the only way I know is do not use admin system...use as a background-image      .qa-logo set  picture1 , .qa-logo:hover set picture2
answered Sep 2, 2011 by thomaskarado
0 votes
If you mean change the hovertext, you probably need a custom theme, with the following function:

        function logo()
        {
            $yourtext = 'test';
            $this->content['logo'] = preg_replace('/TITLE="[^"]+"/i','title="'.$yourtext.'"',$this->content['logo']);
            qa_html_theme_base::logo();
        }

If you want to change the image on hover, just use css and hide the logo image on hover:

        function head_custom()
        {
            $this->output('
<style>
            .qa-logo-link:hover img {
                visibility:hidden;
            }
            .qa-logo-link:hover {
                background-image:url(http://www.question2answer.org/qa/image/4364140800340146597?s=40);
            }           
</style>');
            qa_html_theme_base::head_custom();
}
answered Sep 2, 2011 by NoahY