- This topic has 1 reply, 2 voices, and was last updated 8 years, 8 months ago by
Andy.
-
AuthorPosts
-
February 19, 2017 at 2:17 am #1070
jtinf
ParticipantIs there a way to remove the Powered by WordPress footer.
February 19, 2017 at 1:23 pm #1071
AndyKeymasterThe recommended way to remove the Powered by WordPress footer (or change it to something else) is by installing and activating the Claremont Child Theme from here: https://uxlthemes.com/docs/child-themes/
You can then override any of the claremont functions with your own code by going to Appearance > Editor. Select ‘Claremont Child’ where it says ‘Select theme to edit:’
Then select the ‘Theme Functions (functions.php)’ file and add your own php code below the
/* write custom functions below here */line.This is the standard Claremont function which would need to be changed:
function claremont_site_info( $output = '' ) { $copyright = get_theme_mod( 'footer_content' ); $output .= '<div class="site-info">'; if ( ! empty( $copyright ) ) { $output .= wp_kses_post($copyright); } else { $output .= sprintf( esc_html__( '© %1$s %2$s - All Rights Reserved.', 'claremont' ), get_the_time( 'Y' ), get_bloginfo() ); } $output .= '</div><div class="theme-info"><a href="'.esc_url( esc_html__( 'http://wordpress.org/', 'claremont' ) ).'">'.sprintf( esc_html__( 'Proudly powered by %s', 'claremont' ), 'WordPress' ).'</a><span class="sep"> | </span>'.sprintf( esc_html__( 'Theme: %2$s by %1$s.', 'claremont' ), 'UXL Themes', '<a href="http://uxlthemes.com/theme/claremont/" rel="designer">Claremont</a>' ).'</div>'; echo $output; }So, to remove the whole of the powered by WordPress line add this php code:
function claremont_site_info( $output = '' ) { $copyright = get_theme_mod( 'footer_content' ); $output .= '<div class="site-info">'; if ( ! empty( $copyright ) ) { $output .= wp_kses_post($copyright); } else { $output .= sprintf( esc_html__( '© %1$s %2$s - All Rights Reserved.', 'claremont' ), get_the_time( 'Y' ), get_bloginfo() ); } $output .= '</div>'; echo $output; }It is important that you edit the child theme file and not the core Claremont files, so that any changes you make will not be undone when the parent theme is updated.
-
AuthorPosts
- The topic ‘Footer "Powered by"’ is closed to new replies.
