Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • projecte Friend
    #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 Friend
    #498195

    Hi,

    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


    1. 2121603950
    2. 4983066084
    1. tpls.zip
    projecte Friend
    #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 Friend
    #498232

    Hi,

    <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

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