• Resolved tcross2013

    (@tcross2013)


    Hello,
    I was messing around with the footer php code in the Twenty Twelve theme, trying to customize my footer. I should have written down what I was changing. Now nothing is in the footer when I visit the site. I would like to replace the original code, if possible, and try again. The web site is http://www.bethlevinetherapy.com.

    Here’s what I have right now:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains footer content and the closing of the
     * #main and #page div elements.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    ?>
    	</div><!-- #main .wrapper -->
    	<footer id="colophon" role="contentinfo">
    		<div class="site-info">
    			<?php do_action( 'twentytwelve_credits' ); ?>
    			<a>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>
    		</div><!-- .site-info -->
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    </body>
    </html>


    [Please use the code buttons when posting code here]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Just download a new copy of the theme to your local computer – and replace the contents of that file via the Dashboard or by using FTP. BTW, you should not be modifying theme files especially in a default theme – any changes should be made in a Child Theme.

    Change this line: <a>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>

    back to this: <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>

    and remove the unnecessary space at the end of your last line and I believe you will be back to where you began.

    Thread Starter tcross2013

    (@tcross2013)

    Thank you so much for the advice on modifying theme files. Lesson learned. How do I download a new copy of the theme? Don’t I have to start a new web site to do that?

    No, just click on the download button on this page:
    http://wordpress.org/extend/themes/twentytwelve

    Thread Starter tcross2013

    (@tcross2013)

    Thank you so much for the replacement code! The problem is solved.

    Like WPyogi has mentioned, you really should make a Child Theme…then copy footer.php over into your Child Theme folder and only make changes there.

    Thread Starter tcross2013

    (@tcross2013)

    Thank you both for the very helpful input.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Replace footer php in Twenty Twelve theme’ is closed to new replies.