• 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

Metro Pro footer adjustment

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 › Metro Pro footer adjustment

This topic is: not resolved

Tagged: Metro Pro

  • This topic has 3 replies, 1 voice, and was last updated 12 years, 7 months ago by lifanovsky.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 21, 2014 at 12:48 pm #95975
    lifanovsky
    Member

    Hello!

    I use Metro pro and simple hooks plugin. When I enter anything in the genesis_after_footer box, on the site it shows BEFORE footer widgets, though in other themes same hook puts things AFTER footer widgets.

    What I need is to put php code after footer widgets, and preferably - after last footer. Or within its area and style.

    Could someone please give me advice on how to achieve this?

    Thanks!

    March 21, 2014 at 1:01 pm #95977
    lifanovsky
    Member

    I see that in the Metro Pro theme, the footer widgets and footer have been repositioned in the functions.php file with this code:

    //* Reposition the footer widgets
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
    add_action( 'genesis_after', 'genesis_footer_widget_areas' );

    //* Reposition the footer
    remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );
    add_action( 'genesis_after', 'genesis_footer_markup_open', 11 );
    add_action( 'genesis_after', 'genesis_do_footer', 12 );

    What are those numbers that I need to change so that Simple Hooks would work as intended? That's the easiest solution I see but I think Studiopress had some reasons to break the way it works in other themes?

    March 22, 2014 at 5:01 pm #96109
    lifanovsky
    Member

    Anyone? )

    March 23, 2014 at 6:49 am #96157
    lifanovsky
    Member

    Well, I have found one solutions. It appears that Genesis footer and after_footer stuff still loads BEFORE wp_footer.

    Thus I added the code that I need to be in the end of the page to functions.php:

    add_action ('wp_footer', 'my_footer_code');
        function my_footer_code() {
    include ('/path/to/file_to_include.php');
    }

    Thought I am still interested in they to do this less rude, possibly using Genesis extender?

    Would be great to hear from someone..

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