Back to top not working

October 2015 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Dec 04, 2015 4:52 pm
Reply with quote
Report this post
Back to top link not working on demo site: https://demo.gavick.com/joomla3/news/in ... -year-ago#
Could you help me ?
User avatar
Senior Boarder

teitbite
Mon Dec 07, 2015 11:26 am
Reply with quote
Report this post
Hi

I reported this to our programmers. Will let You know when they will fix it.
User avatar
Moderator

GK User
Mon Dec 07, 2015 11:29 am
Reply with quote
Report this post
Seems like an issue in our template, I'll report that to our devteam and will write back as soon as I'll get an answer.
User avatar
Moderator

teitbite
Mon Dec 07, 2015 12:04 pm
Reply with quote
Report this post
Hi

Please edit file: gk_news_refreshed/html/com_k2/templates/default/item.php and replace line 453 which looks like this:

Code: Select all
<a class="itemBackToTop" href="<?php echo $this->item->link; ?>#"> <?php echo JText::_('K2_BACK_TO_TOP'); ?> </a>


with this line:

Code: Select all
<a class="itemBackToTop" href="<?php echo $this->item->link; ?>#top"> <?php echo JText::_('K2_BACK_TO_TOP'); ?> </a>


than edit file gk_news_refreshed/layouts/default.php and replace line 65, whcih looks like this:

Code: Select all
<body<?php echo $tpl_page_suffix; ?><?php if($this->browser->get("tablet") == true) echo ' data-tablet="true"'; ?><?php if($this->browser->get("mobile") == true) echo ' data-mobile="true"'; ?><?php $this->layout->generateLayoutWidths(); ?> data-smoothscroll="<?php echo $this->API->get('use_smoothscroll', '1'); ?>">


to

Code: Select all
<body<?php echo $tpl_page_suffix; ?><?php if($this->browser->get("tablet") == true) echo ' data-tablet="true"'; ?><?php if($this->browser->get("mobile") == true) echo ' data-mobile="true"'; ?><?php $this->layout->generateLayoutWidths(); ?> data-smoothscroll="<?php echo $this->API->get('use_smoothscroll', '1'); ?>" id="top">


Fixed packaged will be available soon too.
User avatar
Moderator

GK User
Tue Dec 08, 2015 12:26 am
Reply with quote
Report this post
Thanks ! I'll made the changes and expecting the fixed package.
User avatar
Senior Boarder

teitbite
Fri Dec 11, 2015 12:03 pm
Reply with quote
Report this post
Hi

Did this changes help? Please let me know so I'll let programmers know it's a green light to post it.
User avatar
Moderator

GK User
Fri Dec 11, 2015 12:12 pm
Reply with quote
Report this post
The changes works fine. Thanks !
User avatar
Senior Boarder

teitbite
Fri Dec 11, 2015 12:13 pm
Reply with quote
Report this post
Hi

Ok. Thank You. I'm letting programmers know and closing this thread now.
User avatar
Moderator


cron