Hide content

Create fresh and professional look of personal or blog websites with AppsPro Tech
GK User
Mon Jul 30, 2012 9:04 am
Hi,

Can i hide content on a specific menu item, like it's done with the 'home' menu item? I only want to show modules, no articles.

Thanks!
User avatar
Fresh Boarder

GK User
Mon Jul 30, 2012 9:15 am
You can use suffixes for pages under template settings > features > suffixes for pages.

If you check your menu item in main menu you will see its "id" at the end of each line. For an example Home usually is 101

So in suffixes for pages you can enter
101 as pageid
nobg as suffix.

In any of your css files such as override.css ( make sure it is enabled in template settings > advanced settings > css override "on" ) you can add below css which will hide page / content area.
Code: Select all
.nobg #gkPage { display: none;}


See you around...
User avatar
Platinum Boarder

GK User
Sun Sep 02, 2012 8:41 pm
Hi,

Sorry for the late reply ;-)

This works for not showing background. But.. i also want to hide the main content. I only want to show some modules on this page. Is this also possible?
User avatar
Fresh Boarder

GK User
Mon Sep 03, 2012 5:21 am
That is the code for hiding content.
nobg was just an example, it is not a short term for no background.
You can name it what you like such as "nohome"

Another example.
Lets say we have following menu item ids. 101, 200, 220, 400
Lets say we want to use "nohome" as suffix.

So for each menu item id we will enter following in templates > features suffixes for pages.

Pageid: 101
Suffix: nohome
Pageid: 200
Suffix: nohome
Pageid: 220
Suffix: nohome
Pageid: 400
Suffix: nohome

CSS:
Code: Select all
.nohome #gkPage { display: none;}

Above will also hide any modules in mainbody positions as it is under #gkPage element. If you dont want that simply replace above css with below css

Code: Select all
.nohome #gkComponentWrap { display: none;}

Following is page layout and nesting elements.
#gkPage
----------#gkContent
------------------------#gkContentMainbody
-------------------------------------------------#gkComponentWrap
-------------------------------------------------------------------------#gkMainbody

See you around...
User avatar
Platinum Boarder

GK User
Mon Sep 03, 2012 8:32 am
OK. I get the idea.

But.. i cannot find the .nohome in the CSS files. Which file do i have to edit?

Thanks!
User avatar
Fresh Boarder

GK User
Mon Sep 03, 2012 9:10 am
That is a new custom css for your page suffix to work and you need to add it to css/override.css file and enable css override option from template settings > advanced settings > css override "on".

See you around...
User avatar
Platinum Boarder


cron