Skip to content

Conversation

@HardeepAsrani
Copy link
Member

Summary

Adds neve_scroll_to_top_is_enabledfilter to the plugin that allows users to control Scroll to Top display.

Important: The PR is made against #4445

Will affect visual aspect of the product

YES/NO

Screenshots

Test instructions

  • Try some condition like:
add_action( 'init', function() {
	/**
	 * Filter scroll to top to only show on pages, not archives or posts.
	 */
	add_filter(
		'neve_scroll_to_top_is_enabled',
		function( $is_enabled ) {
			// Only enable on pages, disable on archives, posts, and other content types
			if ( ! is_page() ) {
				return false;
			}
			return $is_enabled;
		}
	);
} );

And make sure it works properly.

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/neve-pro-addon/issues/2582.

@HardeepAsrani HardeepAsrani added the pr-checklist-skip Allow this Pull Request to skip checklist. label Nov 5, 2025
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Nov 5, 2025
@pirate-bot
Copy link
Collaborator

Plugin build for 98d3236 is ready 🛎️!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants