How to turn off mainbody/component on Frontpage?
- GK User
- Thu May 24, 2012 10:21 pm
Hi Gavick,
I just upgraded a site from the J! 1.5 version of AppSite to the J! 2.5 version. I need to know how to not display the mainbody (and component) on the Home page? In the 1.5 version, there was a setting in the AppSite template under Presets to turn off the "Show mainbody on frontpage" setting.
In AppSite for 2.5, you did away with the ability to turn it off. The #mainContent padding is causing a big white strip across the page just above the footer.
Thanks in advance for your help.
Best,
railer
I just upgraded a site from the J! 1.5 version of AppSite to the J! 2.5 version. I need to know how to not display the mainbody (and component) on the Home page? In the 1.5 version, there was a setting in the AppSite template under Presets to turn off the "Show mainbody on frontpage" setting.
In AppSite for 2.5, you did away with the ability to turn it off. The #mainContent padding is causing a big white strip across the page just above the footer.
Thanks in advance for your help.
Best,
railer
-

- Gold Boarder
- GK User
- Fri May 25, 2012 1:19 am
Hi Railer,
This could be a quick solution for you, add this code to CSS Override of the template setting:
Cheers,
This could be a quick solution for you, add this code to CSS Override of the template setting:
- Code: Select all
#mainContent{
display:none;
}
Cheers,
-

- Platinum Boarder
- GK User
- Wed Oct 03, 2012 2:55 pm
Hi, i have apply your solution and work good in the frontpage but this code disable mainbody for all section.
When i try to read a article, dont display nothing.
Can i disable the mainbody only in the frontpage??
Thanks for you help.
Fabio
When i try to read a article, dont display nothing.
Can i disable the mainbody only in the frontpage??
Thanks for you help.
Fabio
-

- Fresh Boarder
- GK User
- Wed Oct 17, 2012 9:26 am
SOLVED
in template.css go to
and change to
this work good for me
Ciao
Fabio
in template.css go to
- Code: Select all
#mainContent {
padding: 36px;
and change to
- Code: Select all
#mainContent {
padding: 0px;
margin-left: 20px;
margin-right: 20px;
this work good for me
Ciao
Fabio
-

- Fresh Boarder
4 posts
• Page 1 of 1
