Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // replaces #wrap in default framework shortcode with a true "go to top" href
- // code for adding 3rd navigation menu in footer area
- // Footer Nav Script placed in child theme folder defined by environment variable in functions file
- // Customize Footer Output to include footer menu navigation
- add_filter( 'genesis_footer_output', 'footer_output_filter', 10, 3 );
- function footer_output_filter( $output, $backtotop_text, $creds_text ) {
- require(CHILD_STRUCTURE_DIR.'/footernav.php');
- $backtotop_text = '[footer_backtotop text="Go To Top" href="#"]';
- $creds_text = '© Copyright '. date('Y') . ' ' . get_bloginfo('name') . ' . All rights reserved';
- $output = '<div class="gototop">' . $backtotop_text . '</div>' . '<div class="creds">' . $creds_text . '</div>';
- return $output;
- }
- // Remove Custom Menu support
- remove_theme_support ( 'genesis-menus' ); // removes default Genesis Menus
- // Default Menus: re-registers default menus and add footer menu
- add_theme_support ( 'genesis-menus' , array ( 'primary' => 'Primary Navigation Menu' , 'secondary' => 'Secondary Navigation Menu' ,'footerlinks' => 'Footer Links Menu' ) );
- // Footer Nav Script
- <?php
- echo '<div id="footernav"><div class="footernav-wrap">';
- wp_nav_menu( array( 'sort_column' => 'menu_order',
- 'container_id' => 'footerlinks' ,
- 'menu_class' => 'menu footerlinks superfish sf-js-enabled',
- 'fallback_cb' => 'false',
- 'theme_location' => 'footerlinks') );
- echo '</div></div>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement