Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • nick51 Friend
    #125544

    I’m looking for the correct code and place in the Iris template to put a banner ad at the top of each content page. I did it before but it was long ago and I’m using 1.5 now.

    Any help much appreciated.

    nick51 Friend
    #238574

    Wow this was easy once I dug around… Here is how to modify this tempalate to have a banner or adsense at the top of the content area.

    First add the following line of code to the HTML template. (note this is for Joomla 1.5)

    <?php if ($this->countModules(‘new’)) : ?>
    <div>
    <jdoc:include type=”modules” name=”new” style=”xhtml” />
    </div>
    <?php endif; ?>

    Then insert it in your template where I put it in the example below… Note that you should replace the word NEW with whatever you want to call this new module position.

    <!– BEGIN: CONTENT –>

    <div id=”ja-contentwrap” class=”clearfix”>

    <div id=”ja-content”>
    <div class=”innerpad”>
    <?php if(!$tmpTools->isFrontPage()){ ?>
    <div id=”ja-pathway”>

    <?php if ($this->countModules(‘new’)) : ?>
    <div>
    <jdoc:include type=”modules” name=”new” style=”xhtml” />
    </div>
    <?php endif; ?>

    <jdoc:include type=”module” name=”breadcrumbs” />
    </div>
    <?php } ?>
    <jdoc:include type=”component” />
    </div>

    THEN

    Then Go to the Banner Component and create a new category for this new ad position.
    Go and create a COPOY of your Banner module and ASSIGN it to your NEW “module position”
    and choose the correct banner Category on the right side of the Module screen.

    That’s it for Joomla 1.5

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

This topic contains 2 replies, has 1 voice, and was last updated by  nick51 16 years, 9 months ago.

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