How to change the footer credits in Twenty Nineteen

Change footer credits in Twenty Nineteen WordPress theme

This would be the very first post written in Gutenberg on this website. I did use it before and I do like it but yeah, there is room for improvement. I thought that a good way of firing up the use of Gutenberg on Studiogenium is to talk about a few ways to change the footer credits in Twenty Nineteen.

You probably know by now, with the release of WordPress 5.0 a new theme has been made available for us: Twenty Nineteen. As opposed to its predecessor, this one is all about blogging.

As with every other WordPress theme out there, you have at your disposal three ways of manipulating the footer credits and we’re going to cover all of them in this article.

Here are your options:

  1. Hide the credits with CSS: useful if you don’t want to add your own;
  2. Change the footer credits in Twenty Nineteen to your very own text credits with CSS: an easy method but doesn’t allow HTML;
  3. Change the credits using a child theme: the most flexible way because it allows HTML.

Method 1: Hide the credits

We’re going to make use of WordPress’ built-in custom CSS feature. You can access it by going to Customize and then clicking the Additional CSS tab.

You’ll be presented with a textarea in which you’ll add the following CSS code:

.site-info {
    display: none;
}

Method 2: Change the footer credits in Twenty Nineteen with CSS

Just like in the previous method, this also implies going to Customize > Additional CSS to add some code.

Once you’re there, paste this in:

.site-info a {
    display: none;
}
.site-info::before {
    content: 'YOUR COMPANY CREDITS HERE';
}

Where it says YOUR COMPANY CREDITS HERE, change it to your own text.

Method 3: Change the credits with a child theme

If you’re new to WordPress, you might want to read up a bit on what a child theme is and what it does. You’ll find plenty of info there on creating your very own child theme, should you choose to get your hands dirty with a bit of code.

In case you prefer an easier way, you can always use a plugin that’s build specifically for the task of creating child themes automatically, like this one. Simply go to the plugin’s options, create your child theme and then go to the Files tab and copy footer.php

Once that is handled, you should connect to your server using a FTP client, locate your child theme in /wp-content/themes/childThemeName and open it and edit the footer.php file.

All that’s left to change the footer credits in Twenty Nineteen using a child theme is to locate this block of code:

<?php if ( ! empty( $blog_info ) ) : ?>
    <a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
<?php endif; ?>
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentynineteen' ) ); ?>" class="imprint">
<?php
    /* translators: %s: WordPress. */
    printf( __( 'Proudly powered by %s.', 'twentynineteen' ), 'WordPress' );
?>
</a>

Once you find it, change it to your own credits.

Which method will you choose to make the 2019 WordPress theme your very own?

Subscribe for helpful tips and release info.

2 comments

  1. Thank you for this thourough post! I made a child theme but I´m not familiar with code, so asking for help 🙂
    I located the block of code and managed to change the part that contains the link, but I would like to make more adjustments to the footer. The main problem is that I want to change the footer text completely – no site name etc. I put the linked part in (brackets).

    What it looks like now:
    Site name (design by designer)

    What I want it to look like:
    My text / design by (designer)

    Thank you in advance and greetings from Estonia!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.