WordPress.org

Support

Support » How-To and Troubleshooting » Replacing twenty twelve fooger

Replacing twenty twelve fooger

  • I’m trying to modify the footer on 2012 theme but it does not work.
    I installed a plugin to remove it but is not working neither.
    How can I just hide it?

    Here is the footer.php code with the replacements I made:

    ...
                        <div class="site-info">
    			<?php do_action( 'twentytwelve_credits' ); ?>
    			<a>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( '©2013 Elisabete Companion - Lis Photography', 'twentytwelve' ), 'WordPress' ); ?></a> - <a href="http://www.inmotionhosting.com">InMotion Hosting</a&gt
    		</div><!-- .site-info -->
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    </body>
    </html></a>

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ops, sorry. I don’t know why the text was linked… sorry.

    How can I just hide it?

    Hide what, the whole footer?

    it does not work.

    What doesn’t? Any errors produced?

    WPyogi

    @wpyogi

    Forum Moderator

    Are you using a Child Theme? That’s the first step for modifying a theme.

    WPyogi & Andrew! Thanks you for responding! I will create the Child Theme. I didn’t know that! I was trying to make the changes on the original theme. But used a copy of the footer.php file, the original one is safe.

    What happened was that after the changes I made (see the code I posted above) it shows my footer like this:

    “Lis Photography is proudly powered by wordpress
    Entries(rss) & Comments (rss)”

    I don’t have any technical knowledge, but looks like there is a set on the footer code that is programmed to not accept changes :/ Is there such a thing?

    How to change it? Should I try other themes that are more flexible?

    Thank you for your help!!!!!!!!!!!!!!!!!!

    WPyogi

    @wpyogi

    Forum Moderator

    First make the child theme – seriously, do not modify the default theme – you will create major problems for yourself down the road.

    Then make a copy of the footer.php file in the child theme – and change your footer.php file to this:

    <?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 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>
    
    -->
    <div id="myfooter"> <!-- custom footer section -->
    
    PUT YOUR STUFF HERE
    
    </div> <!-- end custom -->
    
    		</div><!-- .site-info -->
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    </body>
    </html>

    The above code “comments out” the portion you don’t want to see. You can also now use the new id “myfooter” in your new child theme style.css to add styles to your new footer text if you want to.

    #myfooter {
       styles here;
    }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Replacing twenty twelve fooger’ is closed to new replies.