remove Powered by WordPress | Theme: Catch Box from footer
-
This is a neat theme and it adds to the footer using an action. You can remove that action with just a simple function in a child theme.
First create a child theme of Catch Box and activate it.
https://codex.www.ads-software.com/Child_Themes
In my
themes/catch-box-child
directory I have this as thestyle.css
file./* Theme Name: Catch Box Child Theme Description: Child theme for Catch Box Template: catch-box Version: 0.1.0 */ @import url("../catch-box/style.css");
In the same
themes/catch-box-child
directory I have a file calledfunctions.php
with these lines in it.<?php add_action( 'init' , 'mh_remove_copy' ); function mh_remove_copy() { remove_action( 'catchbox_site_generator', 'catchbox_footer_content', 15 ); }
Which will remove all of the text from the footer.
If you add these lines then you can modify what is in that footer.
function mh_catchbox_footer_content() { ?> <div class="copyright"> <?php esc_attr_e('Copyright ©', 'catchbox'); ?> <?php _e(date('Y')); ?> <a href="<?php echo home_url('/') ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"> <?php bloginfo('name'); ?> </a> <?php esc_attr_e('. All Rights Reserved.', 'catchbox'); ?> </div> <div class="powered"> <a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'catchbox' ) ); ?>" title="<?php esc_attr_e( 'Powered by WordPress', 'catchbox' ); ?>" rel="generator"><?php printf( __( 'WOO HOO! Powered by %s', 'catchbox' ), 'WordPress' ); ?></a> <span class="sep"> | </span> <a href="<?php echo esc_url( __( 'https://catchthemes.com/', 'catchbox' ) ); ?>" title="<?php esc_attr_e( 'Theme Catch Box by Catch Themes', 'catchbox' ); ?>" rel="designer"><?php printf( __( 'WOO HOO! Theme: %s', 'catchbox' ), 'Catch Box' ); ?></a> </div> <?php }
See the
WOO HOO!
parts? You can modify that in your child theme’sfunctions.php
file and replace that with anything you like.@jan fuction.php will be automatically imported in child directory or we have to create it.
You will have to create it but don’t copy any functions from the parent theme’s
function.php
file. Just copy into it the new content from above.Thanks
@jani did as u said but i did not work . I just want Copyright part to be diplayed. It removes the footer section but it doesn’t show anything means second part of code you send.
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. Don’t use
blockquote
. ]<?php add_action( 'init' , 'mh_remove_copy' ); function mh_remove_copy() { remove_action( 'catchbox_site_generator', 'catchbox_footer_content', 15 ); } function mh_catchbox_footer_content() { ?> <div class="copyright"> <?php esc_attr_e('Copyright ?', 'catchbox'); ?> <?php _e(date('Y')); ?> <a>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"> <?php bloginfo('name'); ?> </a> <?php esc_attr_e('. All Rights Reserved.', 'catchbox'); ?> </div> <div class="powered"> <a>" title="<?php esc_attr_e( 'Powered by WordPress', 'catchbox' ); ?>" rel="generator"><?php printf( __( 'WOO HOO! Powered by %s', 'catchbox' ), 'WordPress' ); ?></a> <span class="sep"> | </span> <a>" title="<?php esc_attr_e( 'Theme Catch Box by Catch Themes', 'catchbox' ); ?>" rel="designer"><?php printf( __( 'WOO HOO! Theme: %s', 'catchbox' ), 'Catch Box' ); ?></a> </div> <?php }
also i checked in parent theme functions.php . There function name is catchbox_footer_content() instead of mh_catchbox_footer_content()
also i checked in parent theme functions.php . There function name is catchbox_footer_content() instead of mh_catchbox_footer_content()
Yes. That’s done on purpose by me. I’m not changing that theme function, I’m removing it as a action and and adding my own to replace it.
Do you have a link for me to look at? You can preserve the copyright and delete the Powered by div just by deleting the lines in the child theme function.
function mh_catchbox_footer_content() { ?> <div class="copyright"> <?php esc_attr_e('Copyright ©', 'catchbox'); ?> <?php _e(date('Y')); ?> <a href="<?php echo home_url('/') ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"> <?php bloginfo('name'); ?> </a> <?php esc_attr_e('. All Rights Reserved.', 'catchbox'); ?> </div> <?php }
link is cyberpitara.com.
I tried it but it did not worked<?php add_action( 'init' , 'mh_remove_copy' ); function mh_remove_copy() { remove_action( 'catchbox_site_generator', 'catchbox_footer_content', 15 ); } function mh_catchbox_footer_content() { ?> <div class="copyright"> <?php esc_attr_e('Copyright ©', 'catchbox'); ?> <?php _e(date('Y')); ?> <a href="<?php echo home_url('/') ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"> <?php bloginfo('name'); ?> </a> <?php esc_attr_e('. All Rights Reserved.', 'catchbox'); ?> </div> <?php }
I went to the theme editor and looked in the functions.php file.
I located and removed the below lines of code to get rid of the “Powered by WordPress | Theme: Catch Box” that shows in the right side of the footer by default.
You would think the theme creator would make that an option in the Theme Settings??
” title=”<?php esc_attr_e( ‘Powered by WordPress’, ‘catchbox’ ); ?>” rel=”generator”><?php printf( __( ‘Powered by %s’, ‘catchbox’ ), ‘WordPress’ ); ?>
<span class=”sep”> | </span>
” title=”<?php esc_attr_e( ‘Theme Catch Box by Catch Themes’, ‘catchbox’ ); ?>” rel=”designer”><?php printf( __( ‘Theme: %s’, ‘catchbox’ ), ‘Catch Box’ ); ?>bro step by step follow go to Editor > open Theme Functions >
search this code<a href="<?php echo esc_url( __( 'https://catchthemes.com/', 'catchbox' ) ); ?>" title="<?php esc_attr_e( 'Theme Catch Box by Catch Themes', 'catchbox' ); ?>" rel="designer"><?php printf( __( 'Theme: %s', 'catchbox' ), 'Catch Box' ); ?></a>
And Remove this Demo my sit
Does BS mobilerepairsolution.
Are you spamming?I recommend using a child theme and adding this to style.css:
.theme-name {display:none;}
.theme-author {display:none;}That’s an easy way to remove it.
- The topic ‘remove Powered by WordPress | Theme: Catch Box from footer’ is closed to new replies.