WordPress.org

Ready to get started?Download WordPress

Forums

Replacing twenty twelve fooger (6 posts)

  1. liscompanion
    Member
    Posted 1 year ago #

    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>
  2. liscompanion
    Member
    Posted 1 year ago #

    Ops, sorry. I don't know why the text was linked... sorry.

  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    How can I just hide it?

    Hide what, the whole footer?

    it does not work.

    What doesn't? Any errors produced?

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

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

  5. liscompanion
    Member
    Posted 1 year ago #

    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!!!!!!!!!!!!!!!!!!

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags