WordPress.org

Ready to get started?Download WordPress

Forums

Spun
[resolved] Change Sentence in Footer (10 posts)

  1. Selinvarol
    Member
    Posted 6 months ago #

    Hello,

    I would like to change the footer of the website and would like to write

    COPYRIGHT © 2014 CEVIZ HANE | ALL RIGHTS RESERVED

    Link:
    Thanks,
    Selin.

    I really have a great website now, thanks to all for your support.

  2. Noone Here
    Member
    Posted 6 months ago #

    Hello!

    There is a file footer.php at wp-content/themes/spun/. You will need to edit that file. The best way to do this is by creating a child theme if you don't have one already, because this kind of edit is 100% sure to be lost when you update.

    In the footer.php file, there is this code at rows 19-24:

    <div class="site-info">
    			<?php do_action( 'spun_credits' ); ?>
    			<a href="http://wordpress.org/" rel="generator"><?php printf( __( 'Proudly powered by %s', 'spun' ), 'WordPress' ); ?></a>
                <span class="sep"> | </span>
            	<?php printf( __( 'Theme: %1$s by %2$s.', 'spun' ), 'spun', '<a href="http://carolinemoore.net/" rel="designer">Caroline Moore</a>' ); ?>
    		</div><!-- .site-info -->

    You will need to edit this:

    <a href="http://wordpress.org/" rel="generator"><?php printf( __( 'Proudly powered by %s', 'spun' ), 'WordPress' ); ?></a>
                <span class="sep"> | </span>
            	<?php printf( __( 'Theme: %1$s by %2$s.', 'spun' ), 'spun', '<a href="http://carolinemoore.net/" rel="designer">Caroline Moore</a>' ); ?>
    		</div><!-- .site-info -->

    to this:

    <a href="http://www.cevizhane.org/">COPYRIGHT &copy; 2014 CEVIZ HANE</a>
    <span class="sep"> | </span>
            	ALL RIGHTS RESERVED
    		</div><!-- .site-info -->

    Let me know if I can help you with anything else.

    Cheers,
    Toth Balint BT

  3. Selinvarol
    Member
    Posted 6 months ago #

    so, if I just copy paste the below will it work?
    It did not work with me, do I need to copy paste all footer .ph from actal theme to child then do the change?

    <div class="site-info">
    <?php do_action( 'spun_credits' ); ?>
    COPYRIGHT © 2014 CEVIZ HANE
    <span class="sep"> | </span>
    ALL RIGHTS RESERVED
    </div><!-- .site-info -->

    Thanks,
    Selin

  4. Andrew
    Forum Moderator
    Posted 6 months ago #

    do I need to copy paste all footer .ph from actal theme to child then do the change?

    Yes.

    Remember to wrap your code in backticks when posting in this forum.

  5. Noone Here
    Member
    Posted 6 months ago #

    Yes, you have to copy the whole footer.php file to your child theme's folder, and there, don't replace all the code, just that couple of lines that you have pasted in, in the rows about 19-24 (although your file can be a little bit different, regarding the row numbers).

    Remember to activate the child theme so WordPress uses that, and not the original theme.

    Let me know if you were able to make it work.

    Cheers,
    Toth Balint BT

  6. thoughtout
    Member
    Posted 4 months ago #

    Hi, I have done exactly this;
    activated childtheme
    pasted the entire footer file in the child theme CSS
    replaced the code as shown

    but nothing happens. I'd be grateful to know what i'm missing

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content after
     *
     * @package Spun
     */
    
    $spun_facebook = get_theme_mod( 'jetpack-facebook' );
    $spun_twitter = get_theme_mod( 'jetpack-twitter' );
    $spun_tumblr = get_theme_mod( 'jetpack-tumblr' );
    $spun_linkedin = get_theme_mod( 'jetpack-linkedin' );
    ?>
    
    	</div><!-- #main .site-main -->
    
    	<footer id="colophon" class="site-footer" role="contentinfo">
    		<div class="site-info">
    			<?php do_action( 'spun_credits' ); ?>
    			<a href="http://www.thoughtoutthings.co.uk/">COPYRIGHT &copy; 2014 Gillian Morrison</a>
    <span class="sep"> | </span>
            	ALL RIGHTS RESERVED
    		</div><!-- .site-info -->
    		<?php if ( $spun_facebook || $spun_twitter || $spun_tumblr || $spun_linkedin ) : ?>
    			<div class="social-links">
    			<?php if ( $spun_facebook ) : ?>
    				<a href="<?php echo esc_url( $spun_facebook ); ?>" class="facebook-link" data-icon="">
    					<span class="screen-reader-text"><?php esc_html_e( 'Facebook', 'spun' ); ?></span>
    				</a>
    			<?php endif; ?>
    			<?php if ( $spun_linkedin ) : ?>
    				<a href="<?php echo esc_url( $spun_linkedin ); ?>" class="linkedin-link" data-icon="">
    					<span class="screen-reader-text"><?php esc_html_e( 'LinkedIn', 'spun' ); ?></span>
    				</a>
    			<?php endif; ?>
    			<?php if ( $spun_twitter ) : ?>
    				<a href="<?php echo esc_url( $spun_twitter ); ?>" class="twitter-link" data-icon="">
    					<span class="screen-reader-text"><?php esc_html_e( 'Twitter', 'spun' ); ?></span>
    				</a>
    			<?php endif; ?>
    			<?php if ( $spun_tumblr ) : ?>
    				<a href="<?php echo esc_url( $spun_tumblr ); ?>" class="tumblr-link" data-icon="">
    					<span class="screen-reader-text"><?php esc_html_e( 'Tumblr', 'spun' ); ?></span>
    				</a>
    			<?php endif; ?>
    			</div>
    		<?php endif; ?>
    	</footer><!-- #colophon .site-footer -->
    </div><!-- #page .hfeed .site -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

  7. Andrew
    Forum Moderator
    Posted 4 months ago #

    You should have done:

    1. Activated the Child Theme
    2. Copied the "footer.php" file from the Spun theme and pasted it into your Child Theme folder
    3. Edited your "footer.php" file of your Child Theme
  8. meyerwp
    Member
    Posted 4 months ago #

    I am trying the same but somehow the child theme doesn't seems to overwrite
    the main theme
    thanks for your feedback

  9. Andrew
    Forum Moderator
    Posted 4 months ago #

    Could you open a new thread about this: http://wordpress.org/support/theme/spun#postform

  10. thoughtout
    Member
    Posted 4 months ago #

    Andrew, this advice has helped resolve a lot of issues. Many thanks, Gill

Reply

You must log in to post.

About this Theme

About this Topic

Tags