• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Smooth Scroolling Links on Altitude pro based on home page scroolling code

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Smooth Scroolling Links on Altitude pro based on home page scroolling code

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 10 years, 3 months ago by Exkalibur85.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 9, 2015 at 9:30 am #161843
    Exkalibur85
    Participant

    Hello:

    On Altitude Pro the links use the smooth scrooling.

    Are there any way to use that code so we can apply the smooth scrooling to all the links inside the pages of the website, and not only at the home page?

    Thank you.

    (Here is the code of the homepage.php that adds the smooth scrooling.)

    //* Enqueue scripts
    add_action( 'wp_enqueue_scripts', 'altitude_enqueue_altitude_script' );
    function altitude_enqueue_altitude_script() {

    wp_enqueue_script( 'altitude-script', get_bloginfo( 'stylesheet_directory' ) . '/js/home.js', array( 'jquery' ), '1.0.0' );
    wp_enqueue_script( 'localScroll', get_stylesheet_directory_uri() . '/js/jquery.localScroll.min.js', array( 'scrollTo' ), '1.2.8b', true );
    wp_enqueue_script( 'scrollTo', get_stylesheet_directory_uri() . '/js/jquery.scrollTo.min.js', array( 'jquery' ), '1.4.5-beta', true );

    }

    August 9, 2015 at 6:59 pm #161875
    Jeff
    Member

    You should be able to apply the smooth scrolling site wide by cutting this code from the front-page.php file

    //* Enqueue scripts
    		add_action( 'wp_enqueue_scripts', 'altitude_enqueue_altitude_script' );
    		function altitude_enqueue_altitude_script() {
    
    			wp_enqueue_script( 'altitude-script', get_bloginfo( 'stylesheet_directory' ) . '/js/home.js', array( 'jquery' ), '1.0.0' );
    			wp_enqueue_script( 'localScroll', get_stylesheet_directory_uri() . '/js/jquery.localScroll.min.js', array( 'scrollTo' ), '1.2.8b', true );
    			wp_enqueue_script( 'scrollTo', get_stylesheet_directory_uri() . '/js/jquery.scrollTo.min.js', array( 'jquery' ), '1.4.5-beta', true );
    
    		}

    and then pasting it in the functions.php file.

    Hope that helps!

    August 9, 2015 at 7:12 pm #161876
    Jeff
    Member

    Sorry! After posting my previous post, I just realized that there's going to be more you'll have to do to get this to work site wide.

    The front-page.php file creates the widget areas with the appropriate ID's (front-page-1, front-page-2, etc.) and your navigation bar links are setup for each of the sections on the front page so they won't work on additional pages.

    Off the top of my head right now, I'm not for sure how to setup the other pages. I'll do so playing around here over the next couple days and try to find a complete solution for you. Or perhaps someone else will chime in before.

    Anyways, hope that makes sense. Sorry for my premature post. Good luck.

    August 10, 2015 at 4:14 am #161901
    Exkalibur85
    Participant

    Thank you Jeff for the first try.

    I already add it at the functions.php and didn“t work.

    About the HTML I did it this way.
    <div id="milinked area" /></div>

    so the link is just

    But still not working the smooth scrolling. Any help about it?

    August 10, 2015 at 5:16 am #161906
    sancasa
    Member

    Many thanks, Jeff


    San Casa Complex rezidential Sebes

    August 16, 2015 at 4:11 am #162498
    Exkalibur85
    Participant

    Hi Guys. Any help, the smooth scrolling still not working just adding the code at functions.php. I create the <div id=”milinked area” /></div> and a link to it, but is not working with the smooth scrolling efect.

    Any help is really welcome. Thank you.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble