Remove mainbody / Component on a particular page

GK User
Fri Jan 06, 2012 2:27 am
Hello,

Is it possible to remove mainbody / Component on a particular page?

Thank you for your help ;)
User avatar
Junior Boarder

GK User
Fri Jan 06, 2012 10:53 am
Hi,

Yes, I think it's possible. You try adding an additional class for the page in its menu setting, let's say "nobody".

Then add a css code to override.css to hide main section, something like:
Code: Select all
.nobody #mainContent{
display: none;
}

Also remember to enable override mode in template setting.
User avatar
Platinum Boarder

GK User
Thu Jan 12, 2012 5:12 pm
Hello and thank you for your help,

I added the name of the class "nobody" in the box "additional class" menu, then added the code you provided me and enabled override.css but it does not work.
I always mainbody / component.

thank you
User avatar
Junior Boarder

GK User
Fri Jan 13, 2012 9:28 am
Please PM me your backend and FTP access then I will check further for you!
User avatar
Platinum Boarder

GK User
Sun Jan 15, 2012 6:42 pm
Hello Don Lee

I fixed the problem, thank you for your help.

cordially
User avatar
Junior Boarder

GK User
Tue Jan 17, 2012 12:51 pm
Hi Azzzaro,

Glad you could fix it. Feel free to let me know if you need any other helps.

Have a nice day!
User avatar
Platinum Boarder

GK User
Sun Feb 26, 2012 7:19 pm
Hi,

I have the same problem: I want to hide the mainbody. I use Corporate2 Template + Joomla 2.5

1.) I added: .nobody #mainContent{
display: none;
} to the override.css
3.) In the template I put "override css" ON
2.) In the menu link (home) I put "page display option"-->"page class"--> " nobody" (with a leading space)

But I still see the mainbody container.

That's my demo site: http://web294.webbox239.server-home.org/ver03/
User avatar
Expert Boarder

GK User
Sun Feb 26, 2012 7:36 pm
Hi Theraf,

I have just checked your site but didn't see any class named "nobody" but "nodisplay".

Try using this code:
Code: Select all
.nodisplay{
display: none;
}
User avatar
Platinum Boarder

GK User
Sun Feb 26, 2012 7:58 pm
Hi thanks, that worked almost:

It is a menu link to a "single article". Now with the " nodisplay" suffix the content disappears which is good. But the mainbody container still appears :-( (white box without content) - any suggestions?
User avatar
Expert Boarder

GK User
Mon Feb 27, 2012 10:24 am
I just installed the quickstart of this template:

The "home" link is linking to "featured articles", but the features articles theirself are not shown on the homepage. That is the way I want it, but I do not understand it.

Even if I set the home link to a "single article" the single article is not shown. How does this work? :?:
User avatar
Expert Boarder

GK User
Mon Feb 27, 2012 2:59 pm
Can you please send me a PM with backend access then I can check further?
User avatar
Platinum Boarder

GK User
Mon Feb 27, 2012 4:58 pm
Hi,

I already fixed it by using a module in the article with {loadposition modulname}.
User avatar
Expert Boarder

GK User
Tue Feb 28, 2012 11:26 am
I don't understand much but anyways I'm glad to know that.

Have a nice day!
User avatar
Platinum Boarder

GK User
Tue Feb 28, 2012 2:22 pm
Ah I managed to understand how you only display modules in your demo sites:

In the template configuration basic settings/Main Body - FrontPage/Mainbody only.

That's cool! Your templates rock! ;-)
User avatar
Expert Boarder


cron