• 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

link to footer?

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 › link to footer?

This topic is: not resolved

Tagged: magazine, menu

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 2 months ago by rptrevor.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 18, 2014 at 11:29 am #114815
    rptrevor
    Member

    Is there any way to link to the footer section of a page? I've just switched to a "responsive" theme (Magazine Pro - from Church). I moved some of the wordier menu items from the primary and secondary menus down to custom menus in the footer section. I'm thinking it would be nice to have a "More..." menu item in the primary menu that would take users down to the custom menus in the footer section.

    Any ideas?

    Thanks.

    Rich

    http://ednabrewer.net
    July 20, 2014 at 3:18 pm #115085
    Tom
    Participant

    Hi Rich,

    In some themes the footer widget section has an ID of "footer-widgets" that you could link to from your primary menu item. Magazine does not but you can fake one: From "Genesis > Theme Settings > Header and Footer Scripts" add <div id="#footer"</div> to the footer script box.

    Now you can add a link item in your primary menu with a label like "More" and a URL value of "#footer". Clicking on the "More" menu item will scroll to the bottom of the page, revealing the menus in the footer widget area. Not the most elegant solution, but it works.

    Another way to highlight the content behind the other menus would be to replicate those footer menu items using the secondary menu that appears underneath the header area.


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

    July 20, 2014 at 6:39 pm #115109
    rptrevor
    Member

    Thanks Tom!

    I tried this: <div id="footer"></div> - where you suggested and also in Genesis Simple Hooks -> Footer Hooks -> genesis_before_footer(). It works - but it takes you to the end of the footer widget area, right before the site footer. I'd like to find a way to get to the beginning of the footer widget area (between the end of <div class="site-inner"...> and <div class="footer-widgets"...>). On the mobile devices the menus I have on the footer widgets all display as a single column, and I want to take people to the beginning of that. I don't see a hook for that in Genesis Simple Hooks...

    Thanks again.

    Rich

    July 20, 2014 at 8:16 pm #115117
    Tom
    Participant

    We can be more precise with code: Add the following to your functions.php file. This should place the ID just before the footer widgets. (don't forget to remove the Simple Hooks item)

    //* Add ID target for nav menu item
    add_action('genesis_before_footer', 'kp_add_footer_target', 5);
    function kp_add_footer_target() {
        echo "<div id='footer'></div>";
    }

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

    July 20, 2014 at 9:15 pm #115130
    rptrevor
    Member

    Perfect. Thank you very much!

    Rich

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