Support » Theme: Twenty Seventeen » How To Remove “Proudly Powered By WordPress” in 2017

  • Resolved pregwebwp

    (@pregwebwp)


    I really like this theme.
    I have a question:
    I want to know how I can remove “Proudly Powered by WordPress” from the footer section.
    I looked in footer.php and couldn’t find it.
    Thanks in advance for your help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • .site-info { display: none; }

    Hi,

    I just went to footer.php and cleared out everything that was there. Then save and the Proudly powered by WordPress should be gone.

    You can copy and save the content somewhere if you think you might need it again.

    If you want the footer to say something else, try looking at footer.php of twenty fifteen theme, copy that content and paste it into twenty seventeen’s footer.php and then just change the wording and url. Not sure if this is acceptable practice.

    Regards,

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Just a heads-up that you shouldn’t edit theme files directly, otherwise your changes will be overwritten and erased every time the theme is updated.

    The CSS kallerudm gave you is a simple way to remove the footer credit. You can add it to the CSS editor in the Customizer that comes with WordPress as of version 4.7.

    If you want to add your own text to the footer, you should set up a child theme, so your changes won’t be overwritten when you update the theme. If you’re new to child themes, you can explore these guides:

    http://codex.wordpress.org/Child_Themes
    https://www.smashingmagazine.com/2016/01/create-customize-wordpress-child-theme/

    pregwebwp

    (@pregwebwp)

    I edited the CSS and it worked.
    Thank you everyone for your help and feedback.

    Olsson

    (@freddyolsson)

    .site-info { display: none; } will not delete the link. Search engines will still see it and follow it. Human visitors will not be able to see it.

    In the Child Theme, make a footer.php file with this.

    <?php
    /**
     * The template for displaying the footer
     *
     * Contains the closing of the #content div and all content after.
     *
     * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     *
     * @package WordPress
     * @subpackage Twenty_Seventeen
     * @since 1.0
     * @version 1.0
     */
    
    ?>
    
    		</div><!-- #content -->
    
    		<footer id="colophon" class="site-footer" role="contentinfo">
    			<div class="wrap">
    
    print "<p>Proudly powered by ME</p>";
    				?>
    			</div><!-- .wrap -->
    		</footer><!-- #colophon -->
    	</div><!-- .site-content-contain -->
    </div><!-- #page -->
    <?php wp_footer(); ?>
    
    </body>
    </html>
    

    Stilman, I tried your code and on my site this is what showed up in the footer:

    print ”
    Proudly powered by ME

    “; ?>

    So I looked around and found some code from another theme that worked so here’s my modification to your suggestion:

    <?php
    /**
     * The template for displaying the footer
     *
     * Contains the closing of the #content div and all content after.
     *
     * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     *
     * @package WordPress
     * @subpackage Twenty_Seventeen
     * @since 1.0
     * @version 1.0
     */
    
    ?>
    
    		</div><!-- #content -->
    
    		<footer id="colophon" class="site-footer" role="contentinfo">
    			<div class="wrap">
    
    Thank you for visiting my site! | Copyright &copy; <?php echo date("Y") ?> <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>.  All rights reserved.
    			</div><!-- .wrap -->
    		</footer><!-- #colophon -->
    	</div><!-- .site-content-contain -->
    </div><!-- #page -->
    <?php wp_footer(); ?>
    
    </body>
    </html>

    This adds a copyright that changes automatically each year and also a link to the site name.

    Silly me!

    It should have been

    
    <?php print "<p>Proudly powered by ME</p>"; ?>
    

    Sorry for the mistake.

    No need to get into PHP mode if you are only going to print something. So, simply using

    <p>Proudly powered by ME</p>

    (without PHP opening and ending tags) will work.

    The best, and possibly the most correct way, is to provide your child theme with the template-parts folder, and edit the site-info.php file in the footer subfolder.

    Using FTP or whatever suits you best, create a folder in your child theme called template-parts. Inside this folder, create one called footer. Inside that, place a php file called site-info.php that reads as follows:

    <?php
    /**
     * Displays footer site info
     *
     * @package WordPress
     * @subpackage Twenty_Seventeen
     * @since 1.0
     * @version 1.0
     */
    
    ?>
    <div class="site-info">
    <div class="wrap">
    
    [your chosen content goes here]
    
    </div><!-- .wrap -->
    </div><!-- .site-info -->

    That way, the default footer.php functionality is preserved, yet displays your chosen content.

    • This reply was modified 9 months, 3 weeks ago by  wiresplus.
    • This reply was modified 9 months, 3 weeks ago by  wiresplus.
    • This reply was modified 9 months, 3 weeks ago by  wiresplus.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How To Remove “Proudly Powered By WordPress” in 2017’ is closed to new replies.