About Us Link Supersized Slider, Uncaught TypeError scripts.js

chefkoch's picture
chefkoch
Tue, 07/28/2015 - 09:25
#1
About Us Link Supersized Slider, Uncaught TypeError scripts.js

Hi there.

I purchased your theme and now I got two more things having troubles with.

1)

How do I change the link text of "About us" link on Supersized Slider?

Edit: Didn`t find where this has been placed but replaced text via JQuery so far.

2)

When hitting next and previous arrows on Supersized Slider i get "Uncaught TypeError: Cannot read property 'top' of undefined" which is on line 286 of scripts.js

Edit: Only appearing when hitting next or previous button of Supersized Slider.

Any suggests about this?

regards

Jan

phuonght's picture
phuonght
Tue, 07/28/2015 - 23:51

Hi Jan,

Could you send us your site url, admin and FTP accounts (forum link as well) via email: [email protected]?

We would like to have a check.

chefkoch's picture
chefkoch
Tue, 08/18/2015 - 06:51

Hi there.

Thanks for having a look.
But you just commented out Smooth scroll for menu links function in scripts.js line 291.
So you dont get a scroll to anchor anyway and navigation isn´t working.

So I fixed this myself by replacing above function with this one:

$('a[href*=#]').on('click',function(event){
     event.preventDefault();
    var defaultAnchorOffset = 0;
    var $anchor = $('#' + this.hash.substring(1));
    var anchorOffset = $anchor.data('anchor-offset');

    if (!anchorOffset) // for when anchor doesn't have the offset attribute like Section 4
    anchorOffset = defaultAnchorOffset;
    var offset = $anchor.offset() === undefined ? 0 : $anchor.offset().top-40;
    $('html,body').animate({
        scrollTop: offset - anchorOffset
    }, 1200);
});

Please also see:

http://stackoverflow.com/questions/26192272/jquery-smooth-scroll-on-sing...

Maybe this might be helpful for someone else.

regards

Jan

phuonght's picture
phuonght
Tue, 08/18/2015 - 23:52

Thank for your feedback. It is very helpful. If there is any problem in the future, please feel free to tell us :)

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.