adding extra links to gktoplinks

Rate this topic: Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.Evaluations: 2, 3.50 on the average.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
User avatar
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:

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&amp;view=cart" id="btnCart" data-url="index.php?lang=<?php echo $lang; ?>&amp;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&amp;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&amp;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.
User avatar
Moderator

GK User
Mon May 25, 2015 6:12 pm
Reply with quote
Report this post
Sorted ! Much Appreciated , Thank you
User avatar
Fresh Boarder


cron