-
AuthorPosts
-
October 23, 2013 at 7:41 pm #191648
Hi Sir
I have made a modification to my JA FUBIX template to include a banner using a module at position [new_position]
i have added this piece of code in ja_fubix/tpls/blocks/homepage.php
<section id="banner" class="wrap t3-mainbody home-page">
<div class="container">
<div class="new_position<?php $this->_c('new_position')?> span12">
<jdoc:include type="modules" name="<?php $this->_p('new_position') ?>" style="T3Xhtml" />
</div>
</div>
</section>
<section id="t3-mainbody" class="wrap t3-mainbody home-page">
<div class="container">
<div class="row"><!-- MAIN CONTENT -->
As you can see i have created a new section with ID banner for the module as i wanted the banner to be dettached from the main content. You can see the end result here : http://defimedia.info/sportv5/
And also in attached picture.What i want to achieve now is to decreased the top padding and bottom padding of the banner (see screenshot). Which CSS code should i modifiy to achieve this and in which file.
Thanks.
October 24, 2013 at 10:06 am #510096Another question, the banner appears only on the homepage, how can i add it to the other articles pages as well?
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
October 24, 2013 at 10:43 am #510107Hi there,
<blockquote>What i want to achieve now is to decreased the top padding and bottom padding of the banner (see screenshot). Which CSS code should i modifiy to achieve this and in which file.</blockquote>
You can try to create a custom.css file at templates/ja_fubix/css/ path and put below overridden css styles into:
#banner {
margin: -10px 0 -10px 0;
}Change the margin value until you get perfect.
<blockquote>Another question, the banner appears only on the homepage, how can i add it to the other articles pages as well?</blockquote>
You just need to add the codes for defining a new module position into the mainbody block (mainbody.php,mainbody-content-left.php, mainbody-content-right.php, mainbody-right.php) in templatesja_fubixtplsblocks according to the layout being assigned to the menu item that the articles belong to.
1 user says Thank You to phong nam for this useful post
October 24, 2013 at 12:56 pm #510131Thanks sir
works perfectly. Thanks a lot.
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by 261284 11 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Custom banner
Viewing 4 posts - 1 through 4 (of 4 total)