Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59125
    gregd111
    Member

    Hey Sakin,

    I just got your theme recommended by a friend.
    It seems very fast ( so far ) and very clean.
    I’ll be considering buying the Pro version, after I get the taste
    of how the theme is built.

    I’ve been poking around, and I can’t find a way to change the position
    when the ‘Scroll Up’ button shows up.
    In my opinion, it takes too much scrolling before the button shows up.
    I try to make my pages quite short, but I’d still like to offer it to my visitors.

    I know the setting is usually an ‘offset’ variable , in javascript, but I can’t see
    that setting anywhere.

    How can I do that ?

    #59194
    Sakin
    Keymaster

    @gregd111: It’s actually loaded from script adventurous-custom.min.js which you will find in JS folder inside Adventurous folder. You can view original source in file adventurous-custom.js. Then create new adventurous-custom.js in your child theme folder and then add the following code in your child theme functions.php file:

    function adventurous_child_remove_script() {
        wp_dequeue_script( 'adventurous-custom' );	
    }
    add_action( 'wp_enqueue_scripts', 'adventurous_child_remove_script', 20 );
    
    function adventurous_child_add_script() {
        wp_dequeue_script( 'adventurous-custom', get_stylesheet_directory_uri() . '/js/adventurous-custom.js', array( 'waypoints' ), '20150330', true );	
    }
    add_action( 'wp_enqueue_scripts', 'adventurous_child_add_script', 20 );

    We don’t recommend changing it. But if you really want then first you need to build child theme. For child theme, refer to http://catchthemes.com/blog/create-child-theme-wordpress/. Then you need to de

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to change the position of the Scroll Up’ is closed to new replies.