Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_head', 'remove_my_action' );
- function remove_my_action(){
- remove_action( 'catchbase_footer', 'catchbase_footer_content', 100 );
- add_action( 'catchbase_footer', 'catchbase_custom_footer_content', 100 );
- }
- function catchbase_custom_footer_content() {
- $catchbase_content = catchbase_override_footer();
- $catchbase_footer_content = '
- <div id="site-generator" class="two">
- <div class="wrapper">
- <div id="footer-left-content" class="copyright">' . $catchbase_content['left'] . '</div>
- <div id="footer-right-content" class="powered">' . $catchbase_content['right'] . '</div>
- </div><!-- .wrapper -->
- </div><!-- #site-generator -->';
- echo $catchbase_footer_content;
- }
- add_action( 'catchbase_footer', 'catchbase_custom_footer_content', 100 );
- function catchbase_override_footer() {
- $theme_data = wp_get_theme();
- $catchbase_content['left'] = sprintf( _x( 'Copyright © %1$s %2$s. All .', '1: Year, 3: Privacy Policy Link', 'catch-base' ), date_i18n( __( 'Y', 'catch-base' ) ), '<a href="'. esc_url( home_url( '/' ) ) .'">'. esc_attr( get_bloginfo( 'name', 'display' ) ) . '</a>' );
- if ( function_exists( 'get_the_privacy_policy_link' ) ) {
- $catchbase_content['left'] = sprintf( _x( '© %1$s <a href="http://www.dazzlecleaning.com/"> Design by Dazzle Cleaning Service.</a> %3$s', '1: Year, 2: Site Title with home URL 3: Privacy Policy Link', 'catch-base' ), date_i18n( __( 'Y', 'catch-base' ) ), '<a href="'. esc_url( home_url( '/' ) ) .'">'. esc_attr( get_bloginfo( 'name', 'display' ) ) . '</a>', get_the_privacy_policy_link() );
- }
- $catchbase_content['right'] = '';
- return $catchbase_content;
- }
- apply_filters( 'catchbase_get_content', 'catchbase_override_footer', 99 );
Advertisement
Add Comment
Please, Sign In to add comment