• Hi,

    I’ve been trying to change the deault footer text in the ‘Spacious’ Theme.

    This is the default text :-

    Copyright © 2015 Get Mobile. Powered by WordPress. Theme: Spacious by ThemeGrill.

    I’ve looked in footer.php but I can’t find any reference to it.

    Can anyone please help ? (Thanks in advance !)

      Here is the text of the footer.php template :-

    <?php
    /**
    * Theme Footer Section for our theme.
    *
    * Displays all of the footer section and closing of the #main div.
    *
    * @package ThemeGrill
    * @subpackage Spacious
    * @since Spacious 1.0
    */
    ?>

    </div><!– .inner-wrap –>
    </div><!– #main –>
    <?php do_action( ‘spacious_before_footer’ ); ?>
    <footer id=”colophon” class=”clearfix”>
    <?php get_sidebar( ‘footer’ ); ?>
    <div class=”footer-socket-wrapper clearfix”>
    <div class=”inner-wrap”>
    <div class=”footer-socket-area”>
    <?php do_action( ‘spacious_footer_copyright’ ); ?>
    <nav class=”small-menu clearfix”>
    <?php
    if ( has_nav_menu( ‘footer’ ) ) {
    wp_nav_menu( array( ‘theme_location’ => ‘footer’,
    ‘depth’ => -1
    ) );
    }
    ?>
    </nav>
    </div>
    </div>
    </div>
    </footer>

    </div><!– #page –>
    <?php wp_footer(); ?>
    </body>
    </html>

Viewing 5 replies - 1 through 5 (of 5 total)
  • I don’t know if you are still looking for a solution.
    I would suggest using the 4 footer widgets to add footer of your choice.
    As far as removing the default copyright goes, you could add this to your custom css:

    .copyright {
         display: none
    }

    hope this helps..

    You might also want to read https://ww.wp.xz.cn/support/topic/remove-or-edit-info-in-footer?replies=28

    Code by Jan will take you in the right direction.

    Thread Starter mbwatersuk

    (@mbwatersuk)

    Thank you for your YS3. Much appreciated.

    I have used the footer widgets, after commenting out the copyright line.

    Go to: Public_html -> wp-content -> themes -> spacious -> inc -> funtions.php

    add_action( 'spacious_footer_copyright', 'spacious_footer_copyright', 10 );
    /**
     * function to show the footer info, copyright information
     */
    if ( ! function_exists( 'spacious_footer_copyright' ) ) :
    function spacious_footer_copyright() {
    	$site_link = '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '"><span>' . get_bloginfo( 'name', 'display' ) . '</span></a>';
    
    	$wp_link = '<a>http://www.sample.com' ).'" target="_blank" title="' . esc_attr__( 'WordPress', 'spacious' ) . '"><span>' . __( '<strong>software systems</strong>', 'spacious' ) . '</span></a>';
    
    	$tg_link =  '<span>'.__( '<strong>All Rights Reserved</strong>', 'spacious') .'</span>';
    
    	$default_footer_value = sprintf( __( 'Copyright © %1$s %2$s.', 'spacious' ), date( 'Y' ), $site_link ).' '.sprintf( __( 'Powered by %s.', 'spacious' ), $wp_link ).' '.sprintf( __( ' %1$s  %2$s.', 'spacious' ), '', $tg_link);
    
    	$spacious_footer_copyright = '<div class="copyright">'.$default_footer_value.'</div>';
    	echo $spacious_footer_copyright;
    }
    endif;

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    1. Write your website URL where I have written ‘http://www.sample.com&#8217;
    2. Write your company name where I have written ‘software systems’.
    3. Copy and paste the below code in place of the original code.

    $tg_link =  '<span>'.__( 'All Rights Reserved', 'spacious') .'</span>';
    
    	$default_footer_value = sprintf( __( 'Copyright © %1$s %2$s.', 'spacious' ), date( 'Y' ), $site_link ).' '.sprintf( __( 'Powered by %s.', 'spacious' ), $wp_link ).' '.sprintf( __( ' %1$s  %2$s.', 'spacious' ), '', $tg_link);

    [Moderator Note: Ditto]

    But do make sure that you create a backup for the original code before you change the code. Happy coding…

    YSS3

    (@yss3)

    @urja nice work but implementation is temporary. Any spacious update would take you back to the original copyright.

    It is better to create a child theme and add this in your child theme’s functions.php

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Customizing Footer Text in Spacious Theme’ is closed to new replies.