Okay
  Public Ticket #3535407
enable smooth scrolling only on select page
Closed

Comments

  •  4
    Matt started the conversation

    for example, I would like to enable smooth scrolling only on the showcase gallery page, but have it disabled everywhere else. 

    Is there custom css I can add to make this happen? 

    same applies to the magic cursor I would like to enable only on the showcase gallery but turn it off elsewhere. 


    Thanks so much!

  •  1,973
    Support replied

    Hello Matt,

    If you know the page id you can open /include/hooks-config.php and replace line 16 from

    if( serano_get_theme_options( 'clapat_serano_enable_smooth_scrolling' ) ){

    to

    if( is_page(42) && serano_get_theme_options( 'clapat_serano_enable_smooth_scrolling' ) ){

    same with line 31

    if( !serano_get_theme_options( 'clapat_serano_enable_magic_cursor' ) ){

    to

    if( is_page(42) &&  !serano_get_theme_options( 'clapat_serano_enable_magic_cursor' ) ){

    https://developer.wordpress.org/reference/functions/is_page/

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  •  4
    Matt replied

    Thank you guys so much!! Amazing support!! =) Happy Holidays to you and the team!! 

  •  1,973
    Support replied

    Thank you Matt and Happy Holidays to you and your loved ones!

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy