Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • pavit Moderator
    #941507

    Hi

    Go to this folder /templates/ja_healthcare/tpls/blocks/ and find file section.php copy and duplicate it renaming it section-below.php
    edit it and change from

    <?php if ($this->countModules('section')) : ?>
        <!-- SECTION -->
    <div class="section-wrap">
        <jdoc:include type="modules" name="<?php $this->_p('section') ?>" />
    </div>
        <!-- //SECTION -->
    <?php endif ?>

    TO :

    <?php if ($this->countModules('section-below')) : ?>
        <!-- SECTION -->
    <div class="section-wrap">
        <jdoc:include type="modules" name="<?php $this->_p('section-below') ?>" />
    </div>
        <!-- //SECTION -->
    <?php endif ?>

    Now you should add the section-below block to your layout file, open the default layout file named default.php in this folder /templates/ja_healthcare/tpls/ and edit it
    add the block section-below just above footer position so your new default.php file should result as follow

    <div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->
      <div class="container-hd">
    
        <?php $this->loadBlock('top-bar') ?>
    
        <?php $this->loadBlock('header') ?>
    
        <?php $this->loadBlock('mainnav') ?>
    
        <?php $this->loadBlock('slideshow') ?>
    
        <?php $this->loadBlock('spotlight-1') ?>
    
        <?php $this->loadBlock('masthead') ?>
    
        <?php $this->loadBlock('section') ?>
    
        <?php $this->loadBlock('mainbody') ?>
    
        <?php $this->loadBlock('navhelper') ?>
    
        <?php $this->loadBlock('section-below') ?>
    
        <?php $this->loadBlock('footer') ?>
    
      </div>
    </div>

    Then open this file templateDetails.xml in this folder /templates/ja_healthcare/ and add your new position into section in this way

        <position>top-left</position>
        <position>top-right</position>
        <position>video-medicare</position>
        <position>testimonials</position>
                <position>section-below</position>

    Now you have the position section-below available to publish your modules

    Best regards


    1. Screenshot_2-9
    bhmhrex Friend
    #941609

    As always, very clear instructions. Worked perfectly. Thank you!

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

This topic contains 2 replies, has 2 voices, and was last updated by  bhmhrex 8 years, 5 months ago.

The topic ‘Duplicating the "Section" Position’ is closed to new replies.