Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
863 views
in Q2A Core by
edited by
I want to change ONLY Ask a Question button style on the nav . help me pls

1 Answer

+2 votes
by
 
Best answer
Replace the appropriate two functions in qa-theme-base.php with the following:

        function nav_list($navigation, $navtype)
        {
            $this->output('<UL CLASS="qa-nav-'.$navtype.'-list">');

            foreach ($navigation as $key => $navlink)
                $this->nav_item($key, $navlink, $navtype);
           
            $this->output('</UL>');
        }

        function nav_item($key, $navlink, $navtype)
        {
            $this->output('<LI CLASS="qa-nav-'.$navtype.'-item qa-nav-'.$navtype.'-'.$key.'">');
            $this->nav_link($navlink, $navtype);
            $this->output('</LI>');
        }

This will then give you individual class names on each navigation element that you can target for styling, as well as the general class names. I'll also make this modification part of the main 1.0 release, so you won't have to worry about applying this change again in future.
by
I cant change :(
...