Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • munders Friend
    #146683

    Hi all

    I want to add a banner to the header of this template, where the search panel is on the right.

    I have enabled the banner module already and wonder what I need to do to get a banner to show in that position.

    I have a banner image loaded already in the correct client and category and have disabled the Search module.

    I need it to show my 468 x 60 pixel banners.

    Also, I need a banner expiry feature. This involves adding a date to each banner in the Banner module perhaps, so that when the daye passes, another banner in that category automatically appears next.

    Thanks

    Munders.

    prakash Friend
    #326055

    Hi,

    As you want to remove the search position and have the banner position in its place, open this file

    templatesja_selenilayoutsblocksheader.php

    find this code

    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>
    <?php endif; ?>

    and replace it with this

    <?php if($this->countModules('banner')) : ?>
    <div id="ja-top-banner">
    <jdoc:include type="modules" name="banner" />
    </div>
    <?php endif; ?>

    now open the file templates/ja_seleni/css/template.css

    add these lines

    #ja-top-banner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    }

    This will now display banner where your search position is.

    munders Friend
    #326060

    Hi, and thanks for your reply.

    I added the code and did what you said but it still doesn’t work.

    I have my module activated aswell.

    Any other ideas please?

    Thanks

    prakash Friend
    #326061

    Hi,
    The code definitely works. I tested it in all browsers.

    This is the result (in tp=1 view) – this would also display the module position

    If you have any live URL let me know so I can have a look at the error.

    prakash Friend
    #326119

    Hi,

    One reason why your banner might not be displayed is that it does not have the menu correctly enabled.

    Open the Banners from the Module manager – these are the settings I have –

    Do let me know the result.

    jooleimon Friend
    #326488

    Dear prbalge

    I followed your instructions and the banner showed up but not in the expected position. Any ideas where I need to make any further changes.


    1. header_banner
    prakash Friend
    #326508

    hi..

    the banner display is controlled by this ja-top-banner

    kindly check if the div id=ja-top-banner & css have the code…for #ja-top-banner

    thanks

    spidershop Friend
    #328006

    Is it possible to take this one step further and have a 728×90 banner in this position?

    A lot of Magazine sites these days have a large banner up top and i guess you can charge more for this ‘prime’ position.

    prakash Friend
    #328013

    yes definitely you could add a 728X90 template without much problem using the above procedure.

    barryweb Friend
    #329096

    hello
    i followed the instructions and i have the banner working on top, but in firefox is in the middle of the site over the logo and in explorer is fine aligned to right. how can i fix and set it aligned to the right?
    thanks
    martin

    prakash Friend
    #329144

    hi
    the above screenshot of right aligned banner was from firefox. if you have any live site I can check if you have some setup done wrong. Or if you are on local system… kindly post your codes for following files

    templatesja_selenilayoutsblocksheader.php
    templates/ja_seleni/css/template.css
    screenshot of how the layout is coming up
    and screenshot of the banner setup in modules

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

This topic contains 11 replies, has 5 voices, and was last updated by  prakash 14 years, 10 months ago.

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