[Support request] Remove the “Back to top” button on specific page…

Home Forums Support [Support request] Remove the “Back to top” button on specific page…

Home Forums Support Remove the “Back to top” button on specific page…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2232586
    Yannick

    Hi!

    Any hook I can use to remove the “Back to top” button on specific pages?
    I’m using it on all pages, but would like an option to remove it on 1 or 2.

    #2232604
    Ying
    Staff
    Customer Support

    Hi Yannick,

    1. Go to appearance > elements, create a new hook element.

    2. Add this code to the content area:
    <?php remove_action( 'generate_after_footer', 'generate_back_to_top' );?>

    3. Tick the Execute PHP box, select wp_headas hook.

    4. Choose the pages that you want to disable back to top in the display rules > location.

    Once the Hook element is published, it should remove the back to top for chosen pages.

    Check this screenshot as reference: https://www.screencast.com/t/zyhk9ODe

    Let me know 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.