adding extra links to gktoplinks
Rate this topic: 




3.50 out of 6 based on 2 vote(s)






- GK User
- Thu May 21, 2015 10:09 pm
- Reply with quote
- Report this post
Hello in the top right of the template it has "My Cart , Register , and Login, div id is #gkTopLinks
How do i go about adding additional links / text to this row
Kindest Regards
How do i go about adding additional links / text to this row
Kindest Regards
-
- Fresh Boarder
- teitbite
- Mon May 25, 2015 2:56 pm
- Reply with quote
- Report this post
Hi
You need to edit /layout/default.php find code:
and add new links to it with simple <a href="#">Link</a> code.
You need to edit /layout/default.php find code:
- Code: Select all
<?php if($this->API->modules('login + cart + lang') || ($this->API->get('register_link', 1) && $userID == 0)) : ?>
<div id="gkTopLinks">
<?php if($this->API->modules('lang')) : ?>
<jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
<?php endif; ?>
<?php if($this->API->modules('cart')) : ?>
<a href="index.php?option=com_virtuemart&view=cart" id="btnCart" data-url="index.php?lang=<?php echo $lang; ?>&tmpl=cart"><?php echo JText::_('TPL_GK_LANG_MY_CART'); ?><span><?php echo JText::_('TPL_GK_LANG_MY_CART_LOADING'); ?></span></a>
<?php endif; ?>
<?php if($this->API->get('register_link', 1) && $userID == 0) : ?>
<a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&view=registration" id="btnRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
<?php endif; ?>
<?php if($this->API->modules('login')) : ?>
<a href="<?php echo $this->API->URLbase(); ?>index.php?option=com_users&view=login" id="btnLogin"><?php echo $btn_login_text; ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
and add new links to it with simple <a href="#">Link</a> code.
-
- Moderator
- GK User
- Mon May 25, 2015 6:12 pm
- Reply with quote
- Report this post
Sorted ! Much Appreciated , Thank you
-
- Fresh Boarder
3 posts
• Page 1 of 1