How to change 'Theme By: Theme Horse' in the Attitude/Interface WordPress themes

Attitude is a Simple, Clean and Responsive Retina Ready WordPress Theme which adapts automatically to your tablets and mobile devices, and it's available in free and pro versions.

The following copyright phrase appears at the bottom of each page:

Copyright (c) Year - Site title | Theme by: Theme Horse | Powered by: WordPress

This string is found in the file footer-extensions.php under the \library\structure folder.

add_action( 'attitude_footer', 'attitude_footer_info', 30 );
/**
* function to show the footer info, copyright information
*/
function attitude_footer_info() {
$output = '<div class="copyright">'.__( 'Copyright &copy;', 'attitude' ).' '.attitude_the_year().' ' .attitude_site_link().' | ' . ' '.__( 'Theme by:', 'attitude' ).' '.attitude_themehorse_link().' | '.' '.__( 'Powered by:', 'attitude' ).' '.attitude_wp_link() .'</div><!-- .copyright -->';
echo $output;
}

It's possible to override this action with new action.

Please add the following code to the functions.php file. (It's recommended to create a child theme.)

// To remove Copyright phrase in the Attitude WordPress theme
add_action( 'wp_loaded', 'the_dramatist_remove_and_add_function' );
function the_dramatist_remove_and_add_function(){
remove_action('attitude_footer','attitude_footer_info',30);
}
// To define new Copyright phrase
add_action('attitude_footer', 'attitude_footer_new', 30);
function attitude_footer_new() {
$output = '<div class="copyright_new">Your New Copyright Phrase</div><!-- .copyright -->';
echo $output;
}

Please modify "Your New Copyright Phrase" as you wish.

In the Interface theme, you can use the following code:

// To remove Copyright phrase in Interface WordPress theme
add_action( 'wp_loaded', 'the_dramatist_remove_and_add_function' );
function the_dramatist_remove_and_add_function(){
remove_action('interface_footer','interface_footer_info',30);
}
// To define new Copyright phrase
add_action('interface_footer', 'attitude_footer_new', 30);
function attitude_footer_new() {
$output = '<div class="copyright_new">Your New Copyright Phrase</div><!-- .copyright -->';
echo $output;
}

In general, you might need to modify theme file(s) to modify copyright phrase in free WordPress themes. However, most paid WordPress themes such as Avada and Enfold offer an option to override the copyright section.


Leave a Comment