• 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

[Resolved] 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

  • This topic has 1 reply, 2 voices, and was last updated 5 years, 11 months ago by Chinmoy Paul.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 21, 2016 at 10:07 pm #1133
    genunlimited
    Participant

    I need to add a section just before the footer-widgets area only specific pages but not the home page. I added teh widget area and was going to add this code to the right area:

    if (is_page(“Water”)) {
    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 don’t know which file I would add this too. Please help thanks!

    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.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

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