pagePiling.js and page builder

Hey guys,

I’ve got a project that requires http://alvarotrigo.com/pagePiling/ to be implemented and it has been quick and easy to do.

However, I’d like to use BB with this project and the page builder inherits the pagePiling effect when trying to edit.

So let’s say I have 4 BB rows – each a “pagePiling” section. Once inside the editor you can’t actually edit any of those rows once they’ve been created because they zoom away from view when scrolling down to reach them (which is working as intended via the pagePiling script).

Any ideas on how to disable that script while inside the editor? Or even achieving a similar effect with the full-height toggle / smooth scroll BB capabilities?

I’d let you guys take a look, but I’m coding locally.

Thanks!

Well it looks like I might have found an answer from another thread. The following seems to have fixed it.

function theme_name_scripts() {
	   if ( !FLBuilderModel::is_builder_active() ) {
wp_enqueue_script( 'piling', get_stylesheet_directory_uri() . '/build/js/jquery.pagepiling-min.js', array('jquery'), null, true );
   	}
}

Hey Desmond,

Glad that worked for you, enjoy BB and let us know if you need anything further! :slight_smile:

Thanks!

KC