Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • chandima_priyantha Friend
    #181054

    I tried to create a new module position in to the header part of the ja purity ii template. To do that i was opened head.php and index.php of the blocks of Ja purity ii template. Then it shows only some scripts and nothing about body contents. (module positions,div, ). The two file is attached here with. So please help me to solve the problem.


    1. errors.rar
    Thanh Nguyen Viet Friend
    #468673

    Hello chandima_priyantha,

    The block that you need modify to add more module position for header is header.php file, not head.php.
    So, you need copy this file
    <blockquote>plugins/system/jat3/jat3/base-themes/default/blocks/header.php</blockquote>
    and paste it into below folder
    <blockquote>templates/ja_purity_ii/blocks/</blockquote>

    once done, you need add this code snippet for new header.php file:

    [PHP]<?php if($this->countModules(‘{module_position}’)) : ?>
    <div id=”{module_position}”>
    <jdoc:include type=”modules” name=”{module_position}” />
    </div>
    <?php endif; ?>[/PHP]

    replacing {module_position} with name of module position.

    chandima_priyantha Friend
    #468832

    Ok. Thank you very much for your guidance. I did it and work well.

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

This topic contains 3 replies, has 2 voices, and was last updated by  chandima_priyantha 12 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum