Remove Proudly Powered by WordPress

How to remove the powered by WordPress text from Twenty Seventeen theme

In this post, we will discuss how to remove the ‘Proudly powered by WordPress’ text from the twenty seventeen theme and replace it with our own custom copyright text.

Twenty seventeen has been appreciated a lot for being a fast and flexible theme that is suited for both personal and professional websites. Its minimalistic design also suits nearly every type of business and website from simple blogs to services site. It also offers several customization options including the ability to customize the homepage with a two column design as well as a video header. You can tweak the theme so suit your needs. I like this theme because of its simplicity and flexibility and have myself made a few changes like adding a search widget in the header and making sidebar static with css. The twenty seventeen theme is great in terms of speed and performance and with a little bit of customization, you can easily create cool website from this theme.

However, when you install this theme, it has a piece of text in the footer that says -‘Proudly powered by wordpress’. You might want to remove it and replace it with your own custom copyright text and a privacy policy link.
If you are not interested in customizing the copyright text and only want to show the copyright sign and the year in the footer, then it is very simple and requires removing just one line of code from the theme.
You will need to edit the theme file to change it. If you have created one, you can easily make these changes inside the child theme. Otherwise, just go to the footer.php file in the twenty seventeen theme and look for the following piece of code:

get_template_part( 'template-parts/footer/site', 'info' );
?>

You will find this code near the bottom in the footer.php file under the social navigation section. Check the lines 42 and 43 in the footer.php file of the theme and remove them. Now, add the following code there:

?><div class="site-info">Copyright ©</div>

This will remove the ‘Proudly powered by WordPress’ text from the footer and you will see – Copyright 2023 – in its place. This will be enough if you just want to get rid of the ‘Proudly powered by WordPress’ text.

However, if you want to add your website name and privacy policy links in your website footer, the process is slightly different. To do that, you can leave the footer.php file in the theme untouched.
We will instead make the changes directly in the siteinfo.php file which is responsible for the copyright output in the footer. Go to appearance and then theme file editor in your WordPress dashboard. In the right sidebar under the ‘Theme-files’, click on the template parts. Open the footer section in the template parts. The footer section includes two files – footer-widgets.php and site-info.php. Open the site-info.php file for editing. You can copy and save the contents of this file before editing.
The site-info.php file is a small file including hardly 20 to 22 lines of code.

Its contents look like the following:

<?php/** * Displays footer site info * * @package WordPress * @subpackage Twenty_Seventeen * @since Twenty Seventeen 1.0 * @version 1.0 */?><div class="site-info"> 
<?php if ( function_exists( 'the_privacy_policy_link' ) ) { the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); } ?> <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyseventeen' ) ); ?>" class="imprint"> <?php /* translators: %s: WordPress */ printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' ); ?> </a></div><!-- .site-info -->

If you directly move to the bottom, you can recognize the piece of text we want replaced. This is the file where the theme developers have included the ‘Proudly powered by…’ text.

However, we are not concerned with only the lines at the bottom. To change how your copyright text looks, we will remove all the code that is included inside the div. That will also mean 3 php calls less, which is good for website speed. Remove everything that is enclosed in the div.

<div class="site-info">.......</div><!-- .site-info -->

Now, add the following piece of text for your website link and privacy policy link in the footer along with copyright sign. If you want to add only the website name, you can omit the line for privacy policy.

© 2023 | <a href="https://www.example.com" class="imprint">Website Name </a> |<a href="https://www.example.com/privacy-policy/">Privacy-Policy</a>

The whole setup looks something like this:

<div class="site-info">© 2023 |<a href="https://www.example.com" class="imprint">Website Name </a> | <a href="https://www.example.com/privacy-policy/">Privacy-Policy</a> </div><!-- .site-info -->

This will be the entire content of your site-info.php file, which means just ten to fourteen lines of code overall.

<?php
/** * Displays footer site info * * @package WordPress * @subpackage Twenty_Seventeen * @since Twenty Seventeen 1.0 * @version 1.0 */?><div class="site-info"> © 2023 |<a href="https://www.example.com" class="imprint">Website Name </a> | <a href="https://www.example.com/privacy-policy/">Privacy-Policy</a> </div>
<!-- .site-info -->

Once, you have made the changes, clear the website cache and go to check the front end. You will find that the two links, website link and privacy policy link, are included at the bottom as in the case of any premium theme. Just like shown here below :-

© 2023 |Website Name | Privacy-Policy