urja
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Themes and Templates
In reply to: Customizing Footer Text in Spacious ThemeGo to: Public_html -> wp-content -> themes -> spacious -> inc -> funtions.php
add_action( 'spacious_footer_copyright', 'spacious_footer_copyright', 10 ); /** * function to show the footer info, copyright information */ if ( ! function_exists( 'spacious_footer_copyright' ) ) : function spacious_footer_copyright() { $site_link = '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '"><span>' . get_bloginfo( 'name', 'display' ) . '</span></a>'; $wp_link = '<a>http://www.sample.com' ).'" target="_blank" title="' . esc_attr__( 'WordPress', 'spacious' ) . '"><span>' . __( '<strong>software systems</strong>', 'spacious' ) . '</span></a>'; $tg_link = '<span>'.__( '<strong>All Rights Reserved</strong>', 'spacious') .'</span>'; $default_footer_value = sprintf( __( 'Copyright © %1$s %2$s.', 'spacious' ), date( 'Y' ), $site_link ).' '.sprintf( __( 'Powered by %s.', 'spacious' ), $wp_link ).' '.sprintf( __( ' %1$s %2$s.', 'spacious' ), '', $tg_link); $spacious_footer_copyright = '<div class="copyright">'.$default_footer_value.'</div>'; echo $spacious_footer_copyright; } endif;[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]
1. Write your website URL where I have written ‘http://www.sample.com’
2. Write your company name where I have written ‘software systems’.
3. Copy and paste the below code in place of the original code.$tg_link = '<span>'.__( 'All Rights Reserved', 'spacious') .'</span>'; $default_footer_value = sprintf( __( 'Copyright © %1$s %2$s.', 'spacious' ), date( 'Y' ), $site_link ).' '.sprintf( __( 'Powered by %s.', 'spacious' ), $wp_link ).' '.sprintf( __( ' %1$s %2$s.', 'spacious' ), '', $tg_link);[Moderator Note: Ditto]
But do make sure that you create a backup for the original code before you change the code. Happy coding…
Viewing 1 replies (of 1 total)