• Resolved MindCreatesMeaning

    (@xizor)


    ?? Love ‘Automatic YouTube Gallery’; it’s a great plugin!
    Thank you for developing & sharing with everyone.

    Question:
    Is it possible to adjust an offset for the scroll to anchor when selecting a video to watch? Currently, (for me) the resulting position is clipping the top of the AYG player upon scroll. This requires the user to make a manual adjustment – I’d like to eliminate this ‘small amount of user friction’.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Thanks for your feedback ??

    Kindy try adding the following code to the bottom of your theme’s functions.php file,

    add_filter( 'ayg_gallery_scrolltop_offset', function( $top_offset ) {
        return 50;
    });

    Hope this solved your issue!

    Thread Starter MindCreatesMeaning

    (@xizor)

    add_filter( 'ayg_gallery_scrolltop_offset', function( $top_offset ) {
        return 50;
    });

    Your provided code successfully accomplishes the desired outcome, adjusted in my case from a value of ’50’ to ’75’ ????.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adjusting ‘Scroll To’ Anchor When Upon Selecting A Video?’ is closed to new replies.