• Quite some time ago I edited the footer in the 2015 theme for my website. Then it was updated and I lost my personalized footer. I have a child theme for my site with a lot of css in it. Is there a way to use the child theme to make an edited footer permanent and immune to main theme updates? I tried copying 2015 theme footer php file into my child theme and then editing it but I have not been able to get that to work . .. perhaps some little nuance of the code . . . ?? thanks for any help . . .

Viewing 6 replies - 1 through 6 (of 6 total)
  • copying footer.php into the child theme is the right thing to do.
    then edit it there.

    you haven’t described what you want to edit, so you might need to try again.

    Thread Starter drdebmv

    (@drdebmv)

    Hi Michael. Below is the code I copied into my child theme and edited, perhaps you can see some little nuance I have missed. Thanks!

    * @package WordPress
     * @subpackage Twenty_Fifteen
     * @since Twenty Fifteen 1.0
     */
    ?>
    
    	</div><!-- .site-content -->
    
    	<footer id="colophon" class="site-footer" role="contentinfo">
    		<div class="site-info">
    			<?php
    				/**
    				 * Fires before the Twenty Fifteen footer text for footer customization.
    				 *
    				 * @since Twenty Fifteen 1.0
    				 */
    				do_action( 'twentyfifteen_credits' );
    			?>
    			Deborah J. Mayhew & Associates <a href="mailto:[email protected]">&nbsp;[email protected]</a>>
    		</div><!-- .site-info -->
    	</footer><!-- .site-footer -->
    
    </div><!-- .site -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

    Below is the code I copied into my child theme and edited

    that is the whole code in footer.php in your child theme?

    double-check that your are editing the right file in the right theme which is currently active in your site.
    i.e. goto ‘dashboard – appearance – editor’ make sure your child theme is selected, then look into footer.php ….

    Thread Starter drdebmv

    (@drdebmv)

    Oh! I see now I pasted the code in the stylesheet for my child theme . . . how do I create a footer.php file for my child theme?? Thanks Michael –

    Hello,
    Copy your current footer.php file in to a new footer.php file that you create via FTP.

    Thread Starter drdebmv

    (@drdebmv)

    Done!! Thank you Michael! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permanently edit Theme 2015 footer’ is closed to new replies.