-
AuthorPosts
-
November 3, 2010 at 4:59 pm #156022
Hi, I’d like to hide my frontpage content area. I’ve got no articles there but it’s still showing a white box.
Thanks!
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
November 3, 2010 at 8:30 pm #361585Set in Hide Main content block to yes in template parameters along with menu type set as frontpage blog layout for default menu item
November 3, 2010 at 10:42 pm #361594Just tried your solution, but that hides the content in all the site. I need to hide it only in the frontpage. Any idea?
Regarding the menu type, I already have it as frontpage blog layout.
SP Media FriendSP Media
- Join date:
- September 2014
- Posts:
- 477
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 38
- Thanked:
- 70 times in 27 posts
November 3, 2010 at 11:34 pm #361599Surprised the template doesnt let you do that.
When I need to do that, I just create a new module with the following – set to only show on the front page;
[PHP]<style type=”text/css”>
#ja-container {
height:1px !important;
overflow:hidden !important;
visibility:hidden !important;
}[/PHP]You’ll probably need to disable your text editor via your admin configuration in order for that to save properly.
That’ll hide the entire content.
1 user says Thank You to SP Media for this useful post
November 4, 2010 at 8:11 am #361624That worked great! It was also useful to hide a module which shouldn’t display at the frontpage (I asked about it here).
Anyway, I changed your code a little bit:
<style type="text/css">
#ja-contentwrap {
display:none;
}</style>I used “display: none”, is there any advantage for using your solution instead?
Thanks!
SP Media FriendSP Media
- Join date:
- September 2014
- Posts:
- 477
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 38
- Thanked:
- 70 times in 27 posts
November 4, 2010 at 12:32 pm #361653I had no idea display:none existed, lol. :-[
Every day is a svhool day!!!!!!!!
Might be worth applying the other attributes too, as they do combat the older browsers.
November 7, 2010 at 8:48 pm #361865<em>@spmedia 201897 wrote:</em><blockquote>Surprised the template doesnt let you do that.
When I need to do that, I just create a new module with the following – set to only show on the front page;
[PHP]<style type=”text/css”>
#ja-container {
height:1px !important;
overflow:hidden !important;
visibility:hidden !important;
}[/PHP]You’ll probably need to disable your text editor via your admin configuration in order for that to save properly.
That’ll hide the entire content.</blockquote>
Can’t understand..
How to set a module to only show on the front page?SP Media FriendSP Media
- Join date:
- September 2014
- Posts:
- 477
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 38
- Thanked:
- 70 times in 27 posts
November 7, 2010 at 10:05 pm #361866It’s in the module configuration – below the name/access levels, etc. You have an option to select which pages you want it to show.
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 4 voices, and was last updated by SP Media 14 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Hide frontpage content
Viewing 8 posts - 1 through 8 (of 8 total)