Resolved

Auto scroll to top

Ultra Theme started by Eros Di Pietro Oct 13, 2016 27 replies
Eros Di Pietro Oct 13, 2016 · 9:28 am #5180

Good morning,
after update my site have an auto scroll to top. Possible disable this?
Site is http://www.lextel.it
Thanks you so much
Regards
Eros Di Pietro

Andrew Misplon Puro Oct 13, 2016 · 9:35 am #5181

Hi Eros

Thanks for posting. I’m not sure why the state of that setting would have changed. It seems to be working normally in my demo. Please, can you go to Appearance > Customize > Theme Settings > Navigation and disable it there. Let me know how it goes.

Eros Di Pietro Oct 13, 2016 · 9:59 am #5184

Hi, this settings disable only the scroll to top button. but when i refresh the page see the auto scroll to top.
in two site have the problem. in other site without update don’t have the problem.
Sorry form my English 🙂

regards
EDP

Andrew Misplon Puro Oct 13, 2016 · 10:05 am #5186

Is this the element you’re asking about?

If so, have you tried to clear your caching plugin and if that doesn’t help, clear your cache and then disable it. Any difference?

Andrew Misplon Puro Oct 13, 2016 · 10:31 am #5188

Not sure I understand. Are you saying that the page scroll speed is being changed? Ultra, to my knowledge, is not doing that.

Andrew Misplon Puro Oct 13, 2016 · 10:33 am #5189

Ok, I see. Give me a moment, please.

Andrew Misplon Puro Oct 13, 2016 · 10:48 am #5190

Hi Eros, thanks for raising this. We’ve just done a lot of work to get the one-page aspect of the theme working correctly. You can see the demo here.

We’ll need a little time to work on a solution for the scroll to position issue you’ve raised. I’ll reply as soon as I have an update. Thanks again for your feedback.

Eros Di Pietro Oct 13, 2016 · 11:26 am #5191

Also in the demo I see a misbehaving

Video demo puro

i wait your update.
thank’s you so much

Andrew Misplon Puro Oct 13, 2016 · 12:31 pm #5192

Phew, ok, I’m not sure when I user would be doing this, it’s not really a normal use case, but I see your point of view.

Andrew Misplon Puro Oct 13, 2016 · 12:51 pm #5194

Here is a solution for the short term.

1. If you aren’t using a child theme install the plugin Code Snippets. Go to Snippets > Add New and create a snippet as follows:

Name: Theme Main JavaScript
Contents:

function ultra_child_scripts() {
	wp_dequeue_script( 'ultra-theme' );
	wp_enqueue_script( 'ultra-child-theme', content_url() . '/jquery.theme-child.js', array( 'jquery' ), 1.0, true );
}
add_action( 'wp_print_scripts', 'ultra_child_scripts', 20 );

Enable the option, Only run on site front-end.

2. Using FTP upload this file to your wp-content directory.

The file link above, please, right-click and use the Save link as option.

What this will do is remove the main theme JavaScript file and load the same file with the Smooth Scroll section removed.

If there is a child theme being used, let me know and I can adjust these instructions. Let me know if anything isn’t clear. I’ve tested this solution locally and it is working.

Andrew Misplon Puro Oct 13, 2016 · 1:27 pm #5195

(I can assist with this hotfix if required. I’d need a WP login and FTP details.)

Eros Di Pietro Oct 14, 2016 · 5:49 pm #5219

Hello Andrew,
I am only now able to try. I downloaded the plugin, added the java script and uploaded the file in the wp-content directory site. unfortunately it did not work.
The company does not allow anyone to use the FTP connection. I can give an account to access the site.

thanks you so much
Eros

Andrew Misplon Puro Oct 14, 2016 · 6:01 pm #5220

Hi. Please, send a screenshot of the snippet saved including the options at the bottom and also a screenshot of the file saved to wp-contents.

Thanks

Eros Di Pietro Oct 14, 2016 · 6:09 pm #5221

This reply has been marked as private.

Andrew Misplon Puro Oct 14, 2016 · 6:50 pm #5222

Thanks. Please, check now. The last step in Code Snippets is to click Save changes and activate.

28 posts