How to remove “Powered by WordPress”

Many WordPress themes come with “Powered by WordPress” or “Powered by theme name”. This text can be removed by opening the footer.php file in the current theme’s folder and deleting the section that looks similar to the following:

<span class="footer-info-right">
   <?php echo __(' | Powered by WordPress and', 'draftly') ?> <a href=""><?php echo __('        Wonderful themes', 'theme_name') ?></a>

Save the file and hard refresh your WordPress site with CTRL + F5.