test
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • yfb01 Friend
    #201662

    Hi,

    I would like to have the square button/icon for the login on top of the screen in the JA Sugite template as in the example http://www.joomlart.com/forums/attachment.php?attachmentid=37263&d=1401769559 (which is in the Surgite forum thread: http://www.joomlart.com/forums/topic/a-few-little-problems/ ).
    How to configure it? (I couldn’t find the way for it).
    Thanks in advance
    yves

    Pankaj Sharma Moderator
    #550970

    Hi
    Take a backup of your site and do this work

    1. Go to template/JA Sugite /Template.xml file
    and add this code

    <position>login</position>
    after line 71 .

    2. Now go to template/JA Sugite/tpls/blocks.php
    and add this code

    <!-- login -->
    <div class="head-search <?php $this->_c('login') ?>">
    <div class="dropdown">
    <button class="btn btn-primary dropdown-toggle sr-only" type="button" id="head-search" data-toggle="dropdown">
    <i class="fa fa-user"></i>
    </button>
    <div class="dropdown-menu" role="menu" aria-labelledby="login">
    <jdoc:include type="modules" name="<?php $this->_p('login') ?>" style="raw" />
    </div>
    </div>
    </div>

    <!-- //login -->

    after this code


    <button class="btn btn-primary dropdown-toggle sr-only" type="button" id="head-search" data-toggle="dropdown">
    <i class="fa fa-search"></i>
    </button>
    <div class="dropdown-menu" role="menu" aria-labelledby="head-search">
    <jdoc:include type="modules" name="<?php $this->_p('head-search') ?>" style="raw" />
    </div>
    </div>
    </div>
    <!-- //HEAD SEARCH -->

    <?php endif ?>

    like this >>> http://prntscr.com/4rdsnx

    Now create a module type : Login
    and publish it on the module position login >>> http://prntscr.com/4rdsu4

    save it
    and check your frontend . >>>> http://prntscr.com/4rdsz0

    yfb01 Friend
    #550981

    Thanks Pankajsharma,

    before I modify the files, is it possible to use the “custom code” section in the template management interface of the backend administrator?
    if yes, in which box of the custom code should I insert the pieces of codes? (before/after in head or body sections)
    Thanks in advance
    yves

    Pankaj Sharma Moderator
    #550983

    <blockquote>before I modify the files, is it possible to use the “custom code” section in the template management interface of the backend administrator?
    if yes, in which box of the custom code should I insert the pieces of codes? (before/after in head or body sections)</blockquote>

    No you need to edit the files as i mentioned in above post .
    Edit files are
    1. Go to template/JA Sugite /Template.xml file

    2. Now go to template/JA Sugite/tpls/blocks.php

    Let me know if there is any confusion

    yfb01 Friend
    #550989

    I don’t have a template/JA Sugite/Template.xml series of folder and file. Instead, I have:
    templates/ja_sugite (with an “s” after template and with “_” between ja and suite (I assume it corresponds).
    However, the various xml files in that folder are:
    – templateDetails.xml
    – and thememagic. xml

    shoud I add the code in templateDetails.xml?

    I also don’t have a blocks.php in the folder template/JA Sugite/tpls/
    there is a subfolder named “blocks”, but none of these two folders include a file “blocks.php”.

    Thanks in advance

    Pankaj Sharma Moderator
    #550990

    Yes i am talking for JA Sugite template .

    Here is the exact name Path

    templatesja_sugitetplsblocksheader.php


    templatesja_sugitetemplateDetails.xml

    yfb01 Friend
    #550991

    Thanks for your support. 🙂
    I will do the changes after my meeting I am presently in and let you know.
    🙂

    yfb01 Friend
    #551013

    Thank. it works well.
    🙂

    do you now which configuration/code I should add (in the module parameters for instance or in the code) to see the login form or the connected user when the mouse is over? so far I need to click on the button to see those.
    thanks
    🙂

    Pankaj Sharma Moderator
    #551152

    The dropdown of module on JA Sugite template is depended on the hover effect of our T3 Mega Menu, because the layout of JA Sugite mainnav can allow us to use the <ul>, <li> tags of dropdown menu.

    So that, using the click effect on login module on JA Sugite template is most potential solution i can suggest you in this case.

    yfb01 Friend
    #551164

    thanks Pankajsharma for your explanation.

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

This topic contains 10 replies, has 2 voices, and was last updated by  yfb01 10 years, 2 months ago.

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