This is an old revision of the document!
How to remove "Thanks to WordPress and WP-Advocate" in the WordPress footer
This applies to the WordPress Theme known as WP-Advocate by https://www.wpdevshed.com/our-themes/.
Find the footer.php file for the theme known as WP Advocate. It is located in the path /your-website-root/wp-content/themes/wp-advocate/
Using NotePad++ Open the file called “footer.php” and then save as “footer.php-backup”
Close the backup that you just created and use Notepad++ to re-open the original file called “footer.php”
Locate the following source code / script:
<footer id="colophon" role="contentinfo"> <div id="site-generator"> <?php echo __('© ', 'wp-advocate') . esc_attr( get_bloginfo( 'name', 'display' ) ); ?> <span><?php if(is_home() || is_front_page()): ?> - <?php echo __( 'Thanks to ','wp-advocate' ); ?><a href="<?php echo esc_url( __( 'https://wordpress.org/', 'wp-advocate' ) ); ?>" target="_blank"><?php printf('%s', 'WordPress' ); ?></a> <span><?php _e('and','wp-advocate'); ?></span> <a href="<?php echo esc_url( __( 'https://wpdevshed.com/themes/advocate/', 'wp-advocate' ) ); ?>" target="_blank"><?php printf( esc_html( '%s', 'wp-advocate' ), 'WP Advocate' ); ?></a> <?php endif; ?> </span> <?php wp_advocate_footer_nav(); ?> </div> </footer><!-- #colophon -->
Now find the following conditional within the above script:
<?php if(is_home() || is_front_page()): ?>
Here is the solution.
Replace || with && and then save the footer.php file.
Following is the resulting conditional:
<?php if(is_home() && is_front_page()): ?>
This symbol || is the OR logical operator. This symbol && is the AND logical operator.
Your homepage will no longer display “Thanks to WordPress and WP Advocate.” It will only display the copyright notice of the title element of the website.