• 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

Agency home scroll

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 › Design Tips and Tricks › Agency home scroll

This topic is: not resolved

Tagged: Agency, home, scroll

  • This topic has 5 replies, 2 voices, and was last updated 7 years, 7 months ago by Tim Squires.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 6, 2015 at 6:24 pm #161649
    Tim Squires
    Member

    Hi, I have a test site here built with the Agency Pro theme which has scrolling issues:

    http://www.mountains.timsquires.com.au/

    I have added a new widget area for a grid gallery, but the page scrolls down too far when the navigation button is clicked, and some of the grid is cut off by the top of the screen.

    Does anyone have any tips for this? I found one other thread on this topic in the forum but it wasn't resolved

    Many thanks


    timsquires.com.au

    http://www.mountains.timsquires.com.au/
    August 7, 2015 at 8:35 am #161696
    Jeff
    Member

    One way you could try to fix this would be to add an offset to the home.js file. This tells the scrolling how far from the top it should stop.

    jQuery(function( $ ){
    
        $.localScroll({
        	duration: 900,
            offset: -62
        });
    	
    });
    

    Hope that helps!

    August 7, 2015 at 7:47 pm #161770
    Tim Squires
    Member

    Thanks Jeff, I tried your code but sadly it didn't work - there was no effect.
    Do you have any other thoughts?
    Thanks again


    timsquires.com.au

    August 9, 2015 at 11:00 am #161855
    Jeff
    Member

    In your home.js file, you are missing a comma. That is why the offset is not working.

    jQuery(function( $ ){
    
        $.localScroll({
        	duration: 900, //you need a comma here, after 900
        	offset: -62
        });
    	
    });
    August 9, 2015 at 11:09 am #161856
    Jeff
    Member

    Another way to fix this would be to add some padding to .front-grid section.

    The Agency theme uses padding for the .home-middle section. So something like this should work.

    .front-grid {
        padding: 15% 0 0;
    }

    Also, on line 1357, remove the margin-top: 200px

    #front-grid .wrap {
        background: transparent none repeat scroll 0 0;
        /* margin-top: 200px; */
        margin-bottom: 0px;
        padding: 0px;
    }

    I can't test the JavaScript setting but I got it working just fine by adding the padding and removing the margin-top.

    August 9, 2015 at 5:09 pm #161870
    Tim Squires
    Member

    Great, thanks Jeff,

    Good work picking up the missing coma - the code works really well. The padding on the .front-grid section is a great idea - it lets me fine tune the spacing nicely.

    Thanks very much for your help and code suggestions, much appreciated!

    Tim


    timsquires.com.au

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ 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

© 2023 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