• 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

Return to top of page link not working

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 › Return to top of page link not working

This topic is: resolved
  • This topic has 3 replies, 3 voices, and was last updated 7 years, 3 months ago by jkrytus.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 1, 2014 at 9:36 pm #88104
    trevors
    Member

    Hi,

    I'm using the Magazine Theme and the "Return to top of page" link is not working. Any suggestions?

    http://westelmmarketing.com/
    February 2, 2014 at 1:11 am #88118
    chillybin
    Member

    It's because there is no #wrap ID in the html5 themes...

    You could add this function to your functions.php file

    add_action('genesis_before', 'back_to_top');
    function back_to_top() {
      echo '<div id="wrap"></div>';
    }

    Or you could change the link to

    <a href="#menu-primary-navigation">Back to top</a>


    We are a web design & development consultancy based in Singapore who specialise in all things WordPress & Genesis. | ChillyBin Web Design & Consultancy: http://www.chillybin.com.sg | Twitter: @chillybindesign

    February 11, 2014 at 9:20 pm #89906
    trevors
    Member

    The addition to the functions.php file worked, thanks.

    February 11, 2015 at 6:34 pm #140549
    jkrytus
    Member

    It’s because there is no #wrap ID in the html5 themes…

    Can anyone explain why?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Return to top of page link not working’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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