• 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

Centric Home Page JS

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 › Centric Home Page JS

This topic is: not resolved

Tagged: centric, Home Featured, javascript, js

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 10 months ago by stinkykong.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 4, 2014 at 2:34 pm #98518
    stinkykong
    Participant

    I'm not much of a javascript person but wish I was. I wonder if there is a way to bring the content below the solid blue area up into view (partially) so that the visitor sees there is more below. Then when they click on the center button, the partially visible content behaves as it currently does, scrolling up and aligning at the top.

    Currently, the blue background occupies 100% of any available screen height.


    Web Design by Websentia Web Services
    http://websentia.com

    http://tcgishare.com/thecrouchgroup.com/
    April 5, 2014 at 9:37 am #98628
    Tom
    Participant

    I think this does what you want - replace the code in home.js with this. Adjust the value of 100 to whatever suits:

    jQuery(function( $ ){
    
        $('.home-featured .wrap') .css({'height': (($(window).height()-100))+'px'});
        $(window).resize(function(){
            $('.home-featured .wrap') .css({'height': (($(window).height()-100))+'px'});
        });
    
        $(".home-featured .home-widgets-1 .widget:last-child").after('<p class="arrow"><a href="#home-widgets"></a></p>');
    
        $.localScroll({
            duration: 750
        });
    
    });

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    April 6, 2014 at 9:11 am #98718
    stinkykong
    Participant

    Tom, thank you so much. It took me a little while to find time to work on this. I changed the values from pixels to percentages and used 85%. It took some toying around to even figure out what each value did. Then I had to work with the CSS to balance my changes.

    This is all really cool when it works. I appreciate your help.


    Web Design by Websentia Web Services
    http://websentia.com

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

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