Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • cybatek Friend

    How would I remove the mainbody from (only) the frontpage of this template. All I want to see is the ‘avatar’ and user module 5. I dont want to see the white main body area at all.

    I tried by creating a copy of the template and removing the following code (see below) and assigning that template just to the front page. It do get rid of the white content area for the front whilst keeping it for the other pages – HOWEVER – when I use a feature such as virtuemart shop and you ‘go to cart’ for some reason it uses the ‘no mainbody’ template to display the cart (and you see nothing) :

    <!– BEGIN: CONTENT –>
    <div id=”ja-contentwrap”>
    <div class=”ja-mainbody-top”></div>
    <div id=”ja-content”>
    <div id=”ja-pathway”>
    <?php if ($this->countModules(‘breadcrumb’)) { ?>
    <jdoc:include type=”modules” name=”breadcrumb” style=”xthml” />
    <?php } ?>
    <jdoc:include type=”component” />

    <?php if ( $this->countModules(‘banner’) ) { ?>
    <div id=”ja-banner” class=”clearfix”>
    <jdoc:include type=”modules” name=”banner” style=”xhtml” />
    <?php } ?>

    <div class=”ja-mainbody-bot”></div>
    <!– END: CONTENT –>

    cybatek Friend

    Found a better answer for myself in the template.css

    div.ja-mainbody-bot {
    background: url(../images/mainwrap-bottom.gif) no-repeat bottom;
    height: 0px; <—-set this to zero
    line-height: normal;

    div.ja-mainbody-top {
    background: url(../images/mainwrap-top.gif) no-repeat top;
    height: 0px; <—-set this to zero
    line-height: normal;

    and for good measure

    #ja-content {
    padding: 20px; <—set all padding to 20px
    margin: 0;
    clear: both;
    display: block;

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  cybatek 15 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum