This is an old revision of the document!
How to remove "Thanks to WordPress and WP-Advocate" in the WordPress footer
Find the footer.php file for the them WP Advocate. It is located in the path /website-root/wp-content/themes/wp-advocate/
Using NotePad++ Open the file called “footer.php” and then save as “foot.php-backup”
Close the backup that you just created and re-open the original file called “footer.php”
Locate the following source code:
<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 -->
Do you see the following conditional?
<?php if(is_home() || is_front_page()): ?>
Change the || to && and save the file.
This symbol || is the OR conditional. This symbol && is the AND conditional.
As long as your homepage is not your blog page, only the copyright notice will now display. In other words, if you specify a static page (other than the homepage) as your blog roll page, then it will no longer display “Thanks to WordPress and WP Advocate.”