Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • railer Friend
    #157170

    I have a banner ad that measures 300 px X 250 px which I want to put into the User5 module position. There seem to be a bunch of CSS styles that cause the mod_banner module to display with weird borders or backgrounds. How do I remove that stuff, or create a new module class suffix style called “_blank” without the other styles in it? Usually templates have that option in their, but JA Cooper Business does not.

    I’m pretty sure the “_blank” style would do the trick, but I’m not sure how to implement it.

    Please help.

    Thanks,
    railer

    Sherlock Friend
    #365707

    Dear railer,

    You can try as following
    Go to the file of templates/your_tempalte/css/template.css,adding the below css
    .moduletable_blank {
    border:none !important;
    background:none !important;
    }

    Then go to your module back-end and enter the _blank into the field of module class suffix.
    I hope it help.

    railer Friend
    #365861

    Hi dathq,

    Thanks for your reply. Adding that code still didn’t fix the problem. This is a banner module using the JA Cooper Business template’s Carbon style.

    Here is the code involved in the banner module so you can see what styles are involved:

    <div id=”ja-colwrap”>
    <!– BEGIN: MASSCOL –>
    <div id=”ja-colmass” class=”clearfix”>
    <div class=”ja-innerpad”>
    <div class=”moduletable_blank” id=”Mod28″>
    <div class=”ja-boxct-wrap clearfix”><div class=”ja-boxct”>
    <div class=”advs bannergroup_blank”>
    <div class=”banneritem_blank”><a href=”/component/banners/click/2″><img src=”http://www.mydomain.com/images/banners/bnr_my.gif” alt=”Banner” /></a></div>
    </div></div></div></div></div></div></div>

    I added this to my templates.css file:

    div.moduletable_blank {
    margin: 0 0 0 -18px;
    padding: 0;
    }

    And also added the “_blank” module suffix to the mod_banner module. I did try the styles you recommended above in this style but it didn’t help. The margin space is because the banner was displaying off to the right on the page. Don’t know why it did that except if I can only put banners in the banner position in this template.

    Railer

    railer Friend
    #365866

    It seems like this template has backgrounds assigned to it for many module positions. How do I override those styles to provide a plain, basic module without any styles?

    railer Friend
    #365867

    Okay, well to solve it I had to do the following:

    1. Add a new module position to the templateDetails.xml file: user5plain
    2. Copy the code for the current user5 module in my template’s index.php file:

    <?php if ($ja_masscol) { ?>
    <!– BEGIN: MASSCOL –>
    <div id=”ja-colmass” class=”clearfix”>
    <div class=”ja-innerpad”>
    <jdoc:include type=”modules” name=”user5″ style=”jamodule” />
    </div>
    </div>
    <?php } ?>

    And paste it below the existing module code, changing the module “name” to “user5plain” and the style from “jamodule” to “raw”.

    That did the trick!

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

This topic contains 5 replies, has 2 voices, and was last updated by  railer 13 years, 11 months ago.

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