Okay
  Public Ticket #328583
Back to top
Closed

Comments

  • Karl started the conversation

    Hi,

    Back to top is not working on iphone or ipad, can you please advise?

    Cheers...

  •  8,849
    Tahir replied

    Hey!

    Its intentionally removed for mobile devices since swiping is the intended behaviour. 

    Thanks 


    ThemeNectar Support Team 

  • Karl replied

    Hi,

    There should be an option to enable or disable this in the theme options, its very annoying having to scroll back to the top on an iphone.

    My client would like this option enabled, can you please tell me how to do so?

    Thanks

  •  8,849
    Tahir replied

    Hey!

    Add this into the Custom CSS box located in your Salient Options panel :
    @media only screen and (max-width: 1020px) {
        #to-top {
            display: block!important;
        }
    }
    Thanks


    ThemeNectar Support Team 

  • Karl replied

    Hi, that did not work, there is an error on this line apparently -> display: block!important;

  •  8,849
    Tahir replied

    Hey!

    Thats not an error but a warning which can be ignored. Can you provide your site url so i can see why the css is not working. 

    Thanks 


    ThemeNectar Support Team 

  • Karl replied

    Sure its http://trailwalkersireland.ie

  •  8,849
    Tahir replied

    Hey Karl!

    It seems to be working alright now that i see it : http://prntscr.com/5dfg1j

    Thanks 


    ThemeNectar Support Team 

  • Christopher replied

    Hi. I tried this on my site and it didn't work. See screenshot. I'm on Salient 5.5.4.

  •  8,849
    Tahir replied

    Hey Christopher,

    The plugin does fire the event on ios so its not possible.

    Thanks


    ThemeNectar Support Team 

  • Christopher replied

    So is there anyway to get the back to top button working? I've seen it work on other sites for mobile/IOS. Thanks


  •  1,075
    ThemeNectar replied

    Hey,

    you\'d need to mod the init.js file located in the js folder as well. Change this:

    function toTopBind() {
    	if( $(\'#to-top\').length > 0 && $(window).width() > 1020) {
    
    to this:
    function toTopBind() {
    	if( $(\'#to-top\').length > 0) {
    

    Cheers

  • Andrei replied

    --------------------------------------------Update--------------------------------------------

    changed back to a backup file of nectar-slider.js aswell

    it now works again.

    Be careful and do backup of entire site before trying these changes.

    /best regards Andrei


    --------------------------------------------Update--------------------------------------------


    Hi there, I tried doing what you said, followed every instruction. But my website stopped working...

    I changed back to the original init.js file but nothing works on my site.... looks empty...

    why? I haven\'t taken any backup yet so every help I can get is much appreciated!!

    www.spannandelarande.se

    everything is gone on the front end, but everything is there in the backend!! (see image)

    /best regards Andrei

  •  8,849
    Tahir replied

    I can see the frontend fine.

    Thanks


    ThemeNectar Support Team