SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Location
    Finland
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Replacing text in footer.

    Hi, I'm new to wp and I'm having trouble knowing how to replace text in my site's footer. Here is the current text "Voimanlähteenä WordPress", but as you see it's not as clear cut as changing the text in footer.php

    So, would it be possible to overwrite footer.php with my own, perhaps like I've done when creating a child theme with style.css? I would probably delete the below php code in the middle of the div tags and just replace it with a static line which doesn't count on the localisation file.

    Thanks.

    Code:
    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content after
     *
     * @package WordPress
     * @subpackage Twenty_Eleven
     * @since Twenty Eleven 1.0
     */
    ?>
    
    	</div><!-- #main -->
    
    	<footer id="colophon" role="contentinfo">
    
    			<?php
    				/* A sidebar in the footer? Yep. You can can customize
    				 * your footer with three columns of widgets.
    				 */
    				get_sidebar( 'footer' );
    			?>
    
    			<div id="site-generator">
    				<?php do_action( 'twentyeleven_credits' ); ?>
    				<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
    			</div>
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

  2. #2
    SitePoint Member
    Join Date
    Jan 2009
    Location
    Finland
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh wow, I've just realised putting the footer.php in the child-theme folder and editing that, overwrites the one in the parent theme. That's pretty cool.
    So, I just replaced...
    Code:
    <?php do_action( 'twentyeleven_credits' ); ?>
    <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
    with my own text and a link. It looks fine


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •