-
AuthorPosts
-
yfb01 Friend
yfb01
- Join date:
- July 2008
- Posts:
- 142
- Downloads:
- 55
- Uploads:
- 46
- Thanks:
- 34
- Thanked:
- 7 times in 2 posts
September 29, 2014 at 7:07 am #201662Hi,
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
yvesPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 29, 2014 at 8:18 am #550970Hi
Take a backup of your site and do this work1. 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/4rdsu4save it
and check your frontend . >>>> http://prntscr.com/4rdsz0yfb01 Friendyfb01
- Join date:
- July 2008
- Posts:
- 142
- Downloads:
- 55
- Uploads:
- 46
- Thanks:
- 34
- Thanked:
- 7 times in 2 posts
September 29, 2014 at 9:16 am #550981Thanks 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
yvesPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 29, 2014 at 9:21 am #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 file2. Now go to template/JA Sugite/tpls/blocks.php
Let me know if there is any confusion
yfb01 Friendyfb01
- Join date:
- July 2008
- Posts:
- 142
- Downloads:
- 55
- Uploads:
- 46
- Thanks:
- 34
- Thanked:
- 7 times in 2 posts
September 29, 2014 at 9:46 am #550989I 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. xmlshoud 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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
yfb01 Friendyfb01
- Join date:
- July 2008
- Posts:
- 142
- Downloads:
- 55
- Uploads:
- 46
- Thanks:
- 34
- Thanked:
- 7 times in 2 posts
September 29, 2014 at 10:00 am #550991Thanks for your support. 🙂
I will do the changes after my meeting I am presently in and let you know.
🙂yfb01 Friendyfb01
- Join date:
- July 2008
- Posts:
- 142
- Downloads:
- 55
- Uploads:
- 46
- Thanks:
- 34
- Thanked:
- 7 times in 2 posts
September 29, 2014 at 1:32 pm #551013Thank. 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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
September 30, 2014 at 10:53 am #551152The 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.
-
AuthorPosts
This topic contains 10 replies, has 2 voices, and was last updated by yfb01 10 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum