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

Hello, 

I created a mobile theme as I would like it just the home page displays All Activity
 
And the theme of the computer is the adjustment of its homepage
 
I hope you understand what I want to excuse me I'm going through Google translation :/
 
Thank you very much for your help ;)
Q2A version: 1.6.2
by
Do  you mean by responsive design, changes according to the device width?
by
not I buy the plugin Front page but I do not want it to appear on mobile Theme
by
You mean the Front Page you only want to display for Desktop but not Mobile? Including menu and page content both?
by
"Front Page you only want to display for Desktop" exactly :) thanks :)
by
Hmm...interesting.. need to check..let me try and get back to you.... by the way are you using Snow theme?
by
Yes Thank you so much

1 Answer

0 votes
by
edited by

You can do this by overriding theme, There are many way to do this.

but here is simple one:

function body()
{
    $this->output('<body');
    $this->body_tags();
    $this->output('>');
    $this->body_script();
    
    if( strlen(qa_request()) == 0){
        
        ///function for your home page style
        
       $this-> my_home();
    
    }else{
        
        // this portion will load if not home
        $this->body_header();
        $this->body_content();
        $this->body_footer();
        $this->body_hidden();
    }
        
    $this->output('</body>');
}

function my_home(){

    //your layout here
}

 

Please let me know, if anything is worng

by
Thank you for your reply but I do not understand where do I put the code
by
your theme folder qa-theme.php inside extend class, see advance theme doc on q2a.
...