-
AuthorPosts
-
July 7, 2013 at 6:05 pm #188751
Hi,
Please help me removing the content component from the homepage.
I tried this but it doesn’t work:
http://www.joomlart.com/forums/topic/hide-main-content-from-ja-kranos-joomla-2-5-template/
MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
July 8, 2013 at 2:25 am #498195Hi,
Simply you can hide it by css code. Open file “templates/ja_beranis/template.css” and add css code :
#t3-mainbody #t3-content {
display: none;
}
But, I think, you should do it this way (it’s a little more complicated).
– Open folder “templates/ja_beranis/tpls”, clone file “default.php” and rename it to “home.php”.
Open this file and change code
<?php $this->loadBlock ('mainbody') ?>
to
<?php $this->loadBlock ('mainbody-home') ?>
– Open folder “templates/ja_beranis/tpls/blocks” > clone file “mainbody.php” and rename it to “mainbody-home.php”, open it and remove code :
<!-- MAIN CONTENT -->
<div id="t3-content" class="t3-content <?php echo $this->getClass($layout, $col) ?>" <?php echo $this->getData ($layout, $col++) ?>>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<!-- //MAIN CONTENT -->
– Go to adminstrator -> templates -> templates manager, clone templates “ja_beranis – Default” and rename it to “ja_beranis – home”, go to tabs “Layout”, set “Position & Responsive Configuration” as ‘Home’
at “assignment” tab, assign it to home menu item only
You can view 2 files “home.php” and “mainbody-home.php” here
Regards
-
July 8, 2013 at 5:28 am #498220
Ok, thanks,
i have added .homi Class to the css, using your code:.homi #t3-mainbody #t3-content {
display: none;
}But now i have a white space (padding-bottom: 5px; padding-top: 40px;)
how can i remove the padding only from the hompage?MoonSailor FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
July 8, 2013 at 6:40 am #498232Hi,
<blockquote>how can i remove the padding only from the hompage?</blockquote>
If you want apply it only home page, pls clone template as 2nd way that I have answered the above.
Regards
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by MoonSailor 11 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum