0
Welcome Guest! Login
0 items Join Now

Problems adding a body container in gantry

  • Problems adding a body container in gantry

    Posted 11 years 4 months ago
    • Hi all,

      I'm trying to add a new container below the body tag in gantry 4.

      I was trying to do this way:
      <body <?php echo $gantry->displayBodyTag(); ?>>
          <div class="new_container">
                      <?php /** Begin Top Surround **/ if ($gantry->countModules('top') or $gantry->countModules('header')) : ?>    
                      <header id="rt-top-surround">
                          <?php /** Begin Top **/ if ($gantry->countModules('top')) : ?>
                          <div id="rt-top" <?php echo $gantry->displayClassesByTag('rt-top'); ?>>
                              <div class="rt-container">
                                  <?php echo $gantry->displayModules('top','standard','standard'); ?>
                                 
                  <?php echo $gantry->displayModules('analytics','basic','basic'); ?>
                      <?php /** End Analytics **/ endif; ?>
                      <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
              </div>/**The end of new_container**/
          </body>
       

      Seems to work, but When I set a css like:
      #rt-header {
          margin-top: 1%;
          background: rgba(255,255,255,.7) !important;
          width: 1001px;
          height: 100%;
      }
      The header content must be contained in the new container right? But it doesn't. And I don't know why. I must create the new container like a module position?

      Thanks in advance.
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Problems adding a body container in gantry

    Posted 11 years 4 months ago

Time to create page: 0.077 seconds