PRO: gotta scroll problem and the plugin creator is not helping

See this page:
http://kidsmagicworld.com.au/thankyou/?page_id=74

notice when you click on each panel it auto scrolls up to the top

thats using a different theme

On Pro hopwever we run into a problem
as can be seen here: http://staging1.kidsmagicworld.com.au/birthday-party-instant-quote/#content4_BirthdayPrices

you’ll notice a few issues and this video documents them below

the plugin creators reply was:
It seems that your theme is using some smooth scroll functionality which is overwriting the js code which you have put into ‘afterOpen event’. Please check under theme options if you can disable smooth scroll or ask theme author how to disable smooth scroll for particular page/component.

so is there an easy way to deactivate the smooth scroll? or can you deactivate it for 1 page (for me to deactivate on several pages

Hey @b960a518-a049-4215-9,

The theme does have a smooth scroll effect for links. It is fixed and there is no way to remove smooth scrolling globally or per page.

I’ll provide a sample code that will stop the animation but it should be the plugin author’s responsibility to isolate its functions from the theme’s effects. Smooth scroll effect is a popular feature among themes.

Please add this code in your page’s Content JS.

jQuery(function($) {
	$(".dspp_panel a").on('click touchend', function() {
		$("html").stop();
	});
})

It’s also best that you don’t use a sticky bar to that page as there is no way to get around that when your plugin’s link will get hidden behind the bar.

Hope that helps.

Thank you for trying

Unfortunately that had no effect - I don’t know what to do now

But I have figured out that I can create the buttons in the header with your js

staging1.kidsmagicworld.com.au/birthday-party-instant-quote/

with css I removed the built in panels to click and re-created better ones in the header which------- seem to be working- gotta do more tests of course but this is a life saver thank you

Glad we were able to help :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.