How to Customize the Footer in Twenty Twenty: Moving Copyright and Removing 'To the Top'
Content
Many users of the Twenty Twenty theme want to personalize their site's footer, specifically by removing the default 'To the Top' link and repositioning the copyright text. This is a common customization request to better align the footer with a site's specific design goals.
Understanding the Twenty Twenty Footer
The Twenty Twenty theme structures its footer in the footer.php template file. The placement of elements like the 'To the Top' link and the copyright information is controlled by the HTML and PHP code within this file. To make changes, you will need to directly edit this theme file.
Important: Use a Child Theme
Before making any changes, it is highly recommended to use a child theme. Editing theme files directly is not best practice, as your modifications will be overwritten and lost the next time the Twenty Twenty theme is updated. A child theme protects your customizations from being erased during updates.
Step-by-Step Guide to Customizing the Footer
Method 1: Using the Theme Editor (For Quick Changes)
- From your WordPress dashboard, navigate to Appearance > Theme File Editor.
- Ensure the 'Twenty Twenty' theme is selected in the dropdown menu in the upper right.
- On the right-hand side, select Theme Footer (footer.php) from the list of theme files.
- Locate the code for the 'To the Top' link and the copyright section. The exact code may vary, but you can search for text like
to-the-top. - To remove the 'To the Top' link, simply delete its corresponding block of HTML/PHP code.
- To reposition the copyright text, you can cut the code for the copyright section and paste it elsewhere within the footer structure, for example, inside a different
<div>container to move it to the right. - Click Update File to save your changes.
Method 2: Using a Child Theme (Recommended)
- If you haven't already, create and activate a child theme for Twenty Twenty.
- Copy the original
footer.phpfile from the parent theme (located in/wp-content/themes/twentytwenty/) into your child theme's directory. - Open the copied
footer.phpfile in your child theme using a text editor or the Theme Editor. - Make the same code modifications described in Method 1—deleting the 'To the Top' link and moving the copyright code.
- Save the file. Your changes are now safe from parent theme updates.
Alternative: CSS Styling
If you only wish to hide the 'To the Top' link visually without removing the code, you can use CSS. This is a simpler but less comprehensive solution.
- Go to Appearance > Customize > Additional CSS.
- Add the following code to hide the link:
.to-the-top { display: none; } - To reposition the copyright text using CSS, you would need to inspect the footer elements with your browser's developer tools to find the correct classes and then use CSS properties like
text-alignandfloat.
Conclusion
Customizing the Twenty Twenty footer is a straightforward process of modifying the footer.php template. The most common and supported method, as seen in community discussions, is to edit this file directly within a child theme. This approach allows you to safely remove the 'To the Top' link and reposition the copyright text to the bottom right corner, ensuring your site's footer looks exactly how you want it to.
Related Support Threads Support
-
Simple questions on 2020https://wordpress.org/support/topic/simple-questions-on-2020/
-
Post title underwhelming – how to display w/thumbnailshttps://wordpress.org/support/topic/post-title-underwhelming-how-to-display-w-thumbnails/
-
Add sidebar to the templatehttps://wordpress.org/support/topic/add-sidebar-to-the-template-2/
-
What file to modify for cpt archives ?https://wordpress.org/support/topic/what-file-to-modify-for-cpt-archives/
-
Are there resources where I can see sites USING Twenty Twenty?https://wordpress.org/support/topic/are-there-resources-where-i-can-see-sites-using-twenty-twenty/
-
Can sidebars be added?https://wordpress.org/support/topic/can-sidebars-be-added/
-
Twenty Twenty-Five – Sidebar?https://wordpress.org/support/topic/twenty-twenty-five/
-
Guide for styling the hr in TwentyTwenty?https://wordpress.org/support/topic/guide-for-styling-the-hr-in-twentytwenty/
-
Cover Template (20/20) Not Availablehttps://wordpress.org/support/topic/cover-template-20-20-not-available/
-
how to tailor the theme twenty-twenty – in parts: [hands-on-approach]https://wordpress.org/support/topic/how-to-tailor-the-theme-twenty-twenty-in-parts-hands-on-approach/
-
Style in Twenty Twentyhttps://wordpress.org/support/topic/style-in-twenty-twenty/
-
Include screenshots for a non-fiction bookhttps://wordpress.org/support/topic/include-screenshots-for-a-non-fiction-book/
-
Theme customizationhttps://wordpress.org/support/topic/theme-customization-25/
-
Hide caption under featured imagehttps://wordpress.org/support/topic/hide-caption-under-featured-image/
-
can i achieve this look and layout with the theme twenty-twenty?https://wordpress.org/support/topic/can-i-achieve-this-look-and-layout-with-the-theme-twenty-twenty/
-
Twenty Twentyhttps://wordpress.org/support/topic/twenty-twenty-2/
-
enabling the parallax-effect in the theme twenty-twentyhttps://wordpress.org/support/topic/enabling-the-parallax-effect-in-the-theme-twenty-twenty/
-
How to add publish date to pages, just like postshttps://wordpress.org/support/topic/how-to-add-publish-date-to-pages-just-like-posts/
-
Tweak the style on Twenty Twenty blog posts pagehttps://wordpress.org/support/topic/tweak-the-style-on-twenty-twenty-blog-posts-page/
-
Twenty twentyhttps://wordpress.org/support/topic/twenty-twnty/
-
Displaying author photo in meta single tophttps://wordpress.org/support/topic/displaying-author-photo-in-meta-single-top/
-
if-Abfragehttps://wordpress.org/support/topic/if-abfrage/
-
Customize related posts in Twenty Twentyhttps://wordpress.org/support/topic/customize-related-posts-in-twenty-twenty/
-
twenty twenty menuhttps://wordpress.org/support/topic/twenty-twenty-menu/
-
Move copyright to the right bottom cornerhttps://wordpress.org/support/topic/move-copyright-to-the-right-bottom-corner/
-
How to enable parallax effect in Twenty Twentyhttps://wordpress.org/support/topic/how-to-enable-parallax-effect-in-twenty-twenty/
-
Header Pictures for 2020 Themehttps://wordpress.org/support/topic/header-pictures-for-2020-theme/
-
AMP Supporthttps://wordpress.org/support/topic/amp-support-70/
-
post formats on twenty twentyhttps://wordpress.org/support/topic/post-formats-on-twenty-twenty/
-
adding alt text to images in galleries, twenty twenty theme, gutenberghttps://wordpress.org/support/topic/adding-alt-text-to-images-in-galleries-twenty-twenty-theme-gutenberg/
-
Line breaks in post titleshttps://wordpress.org/support/topic/line-breaks-in-post-titles/
-
Add description instead of caption on featured mediahttps://wordpress.org/support/topic/add-description-instead-of-caption-on-featured-media/
-
Display Timehttps://wordpress.org/support/topic/display-time-6/
-
Skip to the contenthttps://wordpress.org/support/topic/skip-to-the-content/