Twenty Twenty Theme – How to Edit Footer Copyright Text

A detailed tutorial on how to change the footer copyright text and how to remove Powered by WordPress text from Twenty Twenty Theme

محتوى المقال

I liked the new WordPress theme Twenty Twenty, so I decided to use it in some projects. Like any other default theme, I had to do some changes (mainly with the footer) and I’m sharing a few of them with you today in this post.

First, let’s have a look at the default footer that comes with Twenty Twenty theme:

Text areas in Twenty Twenty theme footer

As you can see, there are 3 text fields:

  • Copyright text.
  • Powered by WordPress.
  • To the top

In this post, I’ll show you how to customize the copyright text and also the ‘Powered by WordPress’ text.

How to Edit Footer Copyright Text

First, you’ll need to locate footer.php file in your site’s files. To do so, connect to your website using either FTP or SFTP, then navigate to wp-content/themes/twentytwenty/ folder.

Once you have the footer.php file opened, look for:

<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo bloginfo( 'name' ); ?></a>

and change it to

<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo __('YOUR TEXT', 'twentytwenty'); ?></a>

Then simply, change YOUR TEXT with your desired text.

Screenshot of how footer.php should look like
This how your footer.php file should look when you change the mentioned line.

How to Edit Powered by WordPress Text

This one will be easy as you already have the footer.php file opened. To edit ‘Powered by WordPress‘ text, search for it in the file and change it to whatever you want. Also, you can change where it links to as shown in the following screenshot.

Screenshot of how footer.php should look like when you want to change Powered by WordPress text

How to Edit To the top Text

Similarly, you can change the ‘To the top’ text. Please note, there are 2 versions of this text, one for the regular screens and the other one for mobile screens. As you can see in the following screenshot

you’ll need to change ‘To the top’ and ‘Up’ strings. Make sure to keep the placeholder %s as this actually is the arrow. So your edit should be something like:

printf( __( 'BACK TO TOP %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">↑</span>' );

If you have any questions, please feel free to use the comments section below.

شارك هذه المقالة:


إقرأ أكثر عن ووردبريس

Learn WordPress – Session 4

Hi in the 4th post of the “Learn WordPress” live sessions series. Check the 1st session details, video and slides. Check the 2nd session details, video and slides. Check the 3rd session details, video and slides. In the 4th live session we talked about:

المزيد ..

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني.