Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • 261284 Friend
    #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.


    1. banner-spacing
    261284 Friend
    #510096

    Another question, the banner appears only on the homepage, how can i add it to the other articles pages as well?

    phong nam Friend
    #510107

    Hi 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.

    261284 Friend
    #510131

    Thanks sir

    works perfectly. Thanks a lot.

Viewing 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