Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
436 views
in Q2A Core by
how can create a custom page with advanced theme if user is logged in show website normally

and if user is not logged in show the custom page without header, footer and sidebar

(means blank page or it show only that contant which we want)
Q2A version: 1.6

1 Answer

+2 votes
by

I think you can use jquery for that. Something like this:

Jquery:

if($('.qa-logged-in').length)

{

$('body').addClass('logged');

}

or

$('body').has('.qa-logged-in').addClass('logged');

 

 

Css:

.YourSidebar,

.YourFooter,

.YourHeader{display:none;}

 

.logged .YourSidebar,

.logged .YourFooter,

.logged .YourHeader{display:block;}

 

...