• Home
  • Blog
  • Showcase
  • Setup Docs
    • Sunshine Help
    • Flex Help
  • Support
    • Support Area
    • Contact us
    • Feedback
  • Connect
    • Newsletter
    • Twitter
    • Facebook
  • My Account
  • Flex
  • Sunshine
Support : Simple Pro Themes

Support : Simple Pro Themes

Reply To: Adding a full width section before pre-footer

If you have purchased a product, please enter the email address that you used to register at time of purchase.
Log In
Lost Password

Create an Account
  • Your username must be unique, and cannot be changed later.
  • We use your email address to email you a secure password and verify your account.

Support › Forums › Flex Theme › Adding a full width section before pre-footer › Reply To: Adding a full width section before pre-footer

July 22, 2016 at 3:13 am #1134
Chinmoy Paul
Moderator

Add this code in your functions.php file

add_action('genesis_before_footer', 'gd_pre_pre_footer', 3 );
function gd_pre_pre_footer() {
  if (is_page("Water") )
    return;

  if( is_active_sidebar('pre-pre-footer') ):

    genesis_widget_area( 'pre-pre-footer', array(
      'before' => '<div class="pre-pre-footer" id="pre-pre-footer">',
      'after' => '</div>',
    ) );

  endif;
}

I am using “genesis_before_footer” hook and set the priority 3. It will add the new widget area above the footer widget areas if have any.

Copyright © 2022 · Simple PRO Themes for Genesis Framework · About · FAQs · Contact · Affiliates