Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // footer.php template for Divi that takes care for automatic update of the year in your socket
- // change the href inside the p-tag according to your needs. Take also care for the title attr and insert your company name
- // just put this code into a file called footer.php inside your child-theme
- <?php if ( 'on' == et_get_option( 'divi_back_to_top', 'false' ) ) : ?>
- <span class="et_pb_scroll_top et-pb-icon"></span>
- <?php endif;
- if ( ! is_page_template( 'page-template-blank.php' ) ) : ?>
- <footer id="main-footer">
- <?php get_sidebar( 'footer' ); ?>
- <?php
- if ( has_nav_menu( 'footer-menu' ) ) : ?>
- <div id="et-footer-nav">
- <div class="container">
- <?php
- wp_nav_menu( array(
- 'theme_location' => 'footer-menu',
- 'depth' => '1',
- 'menu_class' => 'bottom-nav',
- 'container' => '',
- 'fallback_cb' => '',
- ));
- ?>
- </div>
- </div> <!-- #et-footer-nav -->
- <?php endif; ?>
- <div id="footer-bottom">
- <div class="container clearfix">
- <?php
- if ( false !== et_get_option( 'show_footer_social_icons', true ) )
- {
- get_template_part( 'includes/social_icons', 'footer' );
- }
- ?>
- <p id="footer-info"><?php printf( __( '© %1$s', 'Divi' ), date('Y') . ' ' . '<a href="https://my-domain.com/" title="My Company Name" target="_blank">My Company Name</a>' ); ?>
- </p>
- </div> <!-- .container -->
- </div>
- </footer> <!-- #main-footer -->
- </div> <!-- #et-main-area -->
- <?php endif; // ! is_page_template( 'page-template-blank.php' ) ?>
- </div> <!-- #page-container -->
- <?php wp_footer(); ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment