Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • jochite Friend
    #187877

    Enter new position in the header:

    http://www.jgguerrero.es

    I want to include a new position in the header of the website. This would place it above the header search button to enter a language translation module.

    So far I’ve introduced a new position in

    Template ja_puriti_ii templateDetails.xml

    For the block layout should I include the php code
    Template ja_puriti_ii blocks head.php? or should I include in some specific file JAT3 plugin.

    Regards

    TomC Moderator
    #494417

    Perhaps may be of assistance to you.

    😎

    jochite Friend
    #494597

    I followed the tutorial you’ve indicated following each step of the time but does not result in any results.

    Could you indicate that you may be failing?

    templateDetails.xml

    <positions>
    <position>hornav</position>
    <position>breadcrumbs</position>
    <position>traductor</position>
    <position>search</position>
    </positions

    Template.css

    #ja-traductor {
    padding-left: 20px;
    position: relative;
    bottom: 35px;
    right: 15px;
    }

    httpdocs / templates / ja_purity_ii / blocks / head.php

    <script language=”javascript” type=”text/javascript”>
    var rightCollapseDefault=’show’;
    var excludeModules=’38’;

    <div class=”ja-traductor”>
    <jdoc:include type=”modules” name=”traductor” />
    </div>
    <div class=”ja-search”>
    <jdoc:include type=”modules” name=”search” />
    </div>
    </script>

    Saguaros Moderator
    #494677

    Hi,

    You can add ‘?tp=‘ in the end of your site url to check the new position appears in your site or not. Then try to assign & publish a module to this new position

    Regards

    jochite Friend
    #494695

    All steps that indicates I’ve done. The module also ” traductor” published.

    I have also introduced the following php code in head.php to identify the new module automatically.

    <? php if ($ this-> countModules (‘translator’)):?>
    <div class=”ja-traductor”>
    type=”modules” <jdoc:include name=”traductor” />
    </ div>
    <? php endif;?>

    Regards

    Saguaros Moderator
    #494816

    Hi jochite,

    In your above post, you said that you edit file: head.php. I’m afraid that it should be file: header.php

    By default, the header.php file may not exist in template folder: /templates/ja_purity/block.

    You need to go to directory: pluginssystemjat3jat3base-themesdefaultblocks, then copy file: header.php there to block folder in template folder.

    Then edit this new header.php file as Tom’s tips.

    Regards

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

This topic contains 6 replies, has 3 voices, and was last updated by  Saguaros 10 years, 11 months ago.

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