-
AuthorPosts
-
railer Friend
railer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
December 7, 2010 at 5:14 pm #157170I 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,
railerSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
December 8, 2010 at 3:59 am #365707Dear 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 Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
December 9, 2010 at 1:09 am #365861Hi 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 Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
December 9, 2010 at 1:39 am #365866It 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 Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
December 9, 2010 at 1:49 am #365867Okay, 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!
-
AuthorPosts
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