Hyperlinks in the phone numbers...

Support desk for Multipurpose Quark Theme
GK User
Wed Jan 11, 2017 4:13 pm
Hi. I have a problem with the use of hyperlinks in the phone numbers present in the footer, because when I use the syntax of the protocol "Tel", that mouse over the phone number, I practically change the color of the prefix only +39) even though he selects the whole number. Apparently the code is correct. Any possible solution ?, thank you, greetings. René :?: :idea:
User avatar
Platinum Boarder

teitbite
Mon Jan 16, 2017 4:41 pm
Hi

This is happening because the value of href should not include spaces. Try to use "-" instead.
User avatar
Moderator

GK User
Mon Jan 16, 2017 8:15 pm
Hi, thanks for your response. I have tried removing all the spaces and also using the "-" instance, but, the problem persists. The strange thing is that this happens only in this part of the site. Any ideas, thanks, regards. René.

<i class="fa fa-phone"></i><strong>Telefono</strong> <a href="Tel: +39 085 943 3779">(+39)<strong>-085 943 3779</strong></a><br /><a
User avatar
Platinum Boarder

teitbite
Fri Jan 20, 2017 11:39 am
Hi

And how removing Smooth Scrolling script afftected that? I think this script may be thinking that href value is a name of an anchor it should scroll to. Let me know and if this makes no dfference I'll ask programmers for help.
User avatar
Moderator

GK User
Fri Jan 20, 2017 1:36 pm
Hi. I confirm that I have not touched or changed anything in "Smooth Scrolling", will be another reason, thank you, greetings. René
User avatar
Platinum Boarder

teitbite
Fri Jan 27, 2017 1:01 pm
Hi

I've never said You have changed smooth scrolling script :) I just meant to disable it since in my opinion it's causing this problem with "Tel" as a value of href. Just go to /js/gk.script/js find Smooth Scrolling (it will be named like that) script and delete it.
User avatar
Moderator

GK User
Fri Jan 27, 2017 7:42 pm
Hi, thanks for your reply, you could tell me the complete path of that script and I need to delete it, which line ?, or what is written ?, thanks, regards. René
User avatar
Platinum Boarder

teitbite
Fri Feb 03, 2017 4:55 pm
Hi

Path is /js/gk.script.js in template, so from root joomla /templates/gk_quark/js/gk.script.js line 87

Code: Select all
   // smooth anchor scrolling
   jQuery('a[href*="#"]').on('click', function (e) {
        e.preventDefault();
        if(this.hash !== '') {
            var target = jQuery(this.hash);
           
            if(this.hash !== '' && this.href.replace(this.hash, '') == window.location.href.replace(window.location.hash, '')) {   
                if(target.length && this.hash !== '#') {
                    jQuery('html, body').stop().animate({
                        'scrollTop': target.offset().top
                    }, 1000, 'swing', function () {
                        if(this.hash !== '#') {
                            window.location.hash = target.selector;
                        }
                    });
                } else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
                   window.location.href = this.href;
                }
            } else if(this.hash !== '' && this.href.replace(this.hash, '') !== '') {
               window.location.href = this.href;
            }
        }
User avatar
Moderator

GK User
Sat Feb 04, 2017 7:34 pm
Hi, thank you for you answer. I confirm that after completely deleting the suggested script the problem persists... Any possible solution ?, thank you, greetings. René
User avatar
Platinum Boarder

teitbite
Wed Feb 08, 2017 12:42 pm
Hi

I'm afraid I have no other ideas. There are no other things in template affecting links. I'm sorry but I will not be able to help with this issue :(
User avatar
Moderator

GK User
Thu Feb 09, 2017 5:30 pm
Hi, thanks for your response ... I thank you from the heart for your professionalism and seriousness. As you can see the "Quark" template presents very serious problems that are always more difficult to solve, even in this case it is a link, which is something seemingly easy. I would like to ask you the favor of passing this problem to the programmers who created the template. Is it possible ?, Thank you, regards. René.
* Exactly 1 year and 2 months ago I tried to complete this website and for a problem solved, there are at least two, something that had never happened to me before with a GavickPro template. :?: :shock:
User avatar
Platinum Boarder

teitbite
Wed Feb 15, 2017 11:37 am
Hi

This is a duplication of Your other thread, so I'm closing this one and lets continue conversation there.

https://www.gavick.com/forums/quark/tel ... 47#p267447
User avatar
Moderator


cron