Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • kevin bates Friend
    #135528

    I have added an additional banner module called bannertop.
    I have placed it in the index.php underneath the jaslideshow (topsl).
    Here is the url: http://www.cutterart.com/index.php/shop

    I have two issues.
    1. What css syntax do I use to center the banner?
    2. When I go to a page that does not have the Top banner (http://www.cutterart.com/) the body component (articles) drop out or disappear.

    Most importantly I need my content back into the main component.
    Here is the modified index code:

    <?php if ( $this->countModules('topsl') ) : ?>
    <!-- BEGIN: SLIDESHOW -->
    <div id="ja-topsl">
    <jdoc:include type="modules" name="topsl" style="raw" />
    </div>
    <!-- END: SLIDESHOW -->
    <?php endif; ?>
    <!-- START: BANNER -->
    <div id="ja-bannertopwrap">
    <div id="ja-bannertop" class="clearfix">
    <div id="ja-bannertop">
    <?php if($this->countModules('bannertop')) : ?>
    <!-- BEGIN: BANNER -->
    <div id="ja-bannertop">
    <jdoc:include type="modules" name="bannertop" />
    </div>
    </div>
    </div>
    <!-- END: BANNER -->

    <!-- BEGIN: CONTENT -->

    Here is an extract of template.css


    /* mis */
    div.banneritem_text {
    padding: 5px 0 !important;
    }

    #ja-bannertopwrap {
    clear:both;
    margin:0 auto;
    width:950px;
    }

    div.advs {
    clear: both;
    display: block;
    float: left;
    width: 100%;
    margin-bottom: 15px;
    }

    Does anybody have any ideas? Any help would be appreciated.
    Thanks!
    kevin

    kevin bates Friend
    #279806

    I kept playing with it and resolved the issue by moving <?php endif; ?> to line 167

    Here is the resolved code:

    <!-- START: BANNER -->
    <div id="ja-bannertopwrap">
    <div id="ja-bannertop" class="clearfix">
    <div id="ja-bannertop">
    <?php if($this->countModules('bannertop')) : ?>
    <!-- BEGIN: BANNER -->
    <div id="ja-bannertop">
    <jdoc:include type="modules" name="bannertop" />
    </div>
    </div>
    </div>
    <?php endif; ?>
    <!-- END: BANNER -->

    <!-- BEGIN: CONTENT -->
    <div id="ja-mainbody" class="clearfix">
    <?WAS HERE?>

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

This topic contains 2 replies, has 1 voice, and was last updated by  kevin bates 15 years, 12 months ago.

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