Navigation

    Digital Liberation Forums

    • Register
    • Login
    • Search

    back to top button

    jQuery Smooth Scroll
    3
    4
    70
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      phil59 last edited by

      Is it possible to deactivate the back to top button? The theme I use already have one by default and I would like to keep things this way. Thank you!

      anand 1 Reply Last reply Reply Quote
      • anand
        anand @phil59 last edited by

        Hello @phil59

        Add the following code in your theme's functions.php or a site specific plugin (if you have one).

        add_action( 'wp_head', 'remove_my_class_action' );
        function remove_my_class_action(){
        	global $jQuerySmoothScroll;
        	remove_action( 'wp_footer', array( $jQuerySmoothScroll, 'wp_footer_lol' ) );
        }
        
        1 Reply Last reply Reply Quote
        • C
          clarablaehr last edited by

          Hi there!
          I have tried to use this code to also remove the back to top scroll button, however this code does not work for me.
          css says there are more than 20 erros with unexpected tokens, expexted LBRACE and expected LBRACE etc.
          I do not know any code art all so can you check if this still works at all?
          Thanks!
          Clara

          1 Reply Last reply Reply Quote
          • C
            clarablaehr last edited by

            Update! Removing the ' signs around the 'wp_head' so it just looks like wp_head makes the errors go down to 2. The last error messages I get are the following:

            Unexpected token 'add_action(' at line 5 col.1
            Unexpected token 'remove_my_class_action''

            How does this get fixed? Thanks 🙂

            1 Reply Last reply Reply Quote
            • First post
              Last post