• I’m running Colinear on www.ads-software.com and have some custom CSS already implemented.

    I’m trying to edit the footer.php file. I’m attempting to center some information in the footer:
    copyright_symbol with my full_name and current_date. To update the date automatically is not necessary but would be great. Would be great to just add this footer information to begin with.

    Current content of footer.php:

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the #content div and all content after
     *
     * @package Colinear
     */
    
    ?>
    
    	</div><!-- #content -->
    
    	<?php get_sidebar( 'footer' ); ?>
    
    	<footer id="colophon" class="site-footer" role="contentinfo">
    		<div class="site-info">
    			<a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'colinear' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'colinear' ), 'WordPress' ); ?></a>
    			<span class="sep genericon genericon-wordpress"></span>
    			<?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'colinear' ), 'Colinear', '<a href="https://wordpress.com/themes/" rel="designer">Automattic</a>' ); ?>
    		</div><!-- .site-info -->
    	</footer><!-- #colophon -->
    </div><!-- #page -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>
    • This topic was modified 7 years, 6 months ago by michaelvenables.
    • This topic was modified 7 years, 6 months ago by michaelvenables.
    • This topic was modified 7 years, 6 months ago by michaelvenables. Reason: clarified explanation of issue in post
Viewing 9 replies - 1 through 9 (of 9 total)
  • Sorry, but I cannot help in this situation.
    Steve

    Thread Starter michaelvenables

    (@michaelvenables)

    Thanks for the response Steve. I’ll keep looking for a tweak in the footer.php file to make this work.
    – Michael

    Hi michaelvenables,

    Would you be able to share a link to the site? It will be easier for us to help if we can see it.

    Thread Starter michaelvenables

    (@michaelvenables)

    Hey dcoleonline,

    Of course. It’s https://michaelvenables.com.

    Thanks for taking a look.

    Sure, you can edit this using CSS. Just paste this into the Dashboard > Appearance > Additional CSS area:

    
    .site-info {
        display: none;
    }
    .site-footer:after {
        content: '? First Last 2017';
        color: #000000;
        display: block;
    }

    Feel free to change the text inside the quotes to whatever you like.

    Thread Starter michaelvenables

    (@michaelvenables)

    Sorry for the delayed response. I should have mentioned that I’m creating a child theme, as I really don’t want to loose any customizations-fonts, point sizes, footer info., etc.

    After I create the child theme, my understanding is that I was forced to modify the footer.php file in order to keep the footer with its custom information (the centered name, copyright info.)

    Appreciate the help David!

    Hi again,

    If you add the footer content using the Dashboard > Appearance > Additional CSS area, you won’t lose the changes when the theme is updated.

    However if you prefer to make a child theme, feel free to do so.

    After I create the child theme, my understanding is that I was forced to modify the footer.php file

    You aren’t forced to since you can use CSS instead. However, you can make changes to the footer.php file in the child theme, and the changes will remain even if you update the parent theme.

    Thread Starter michaelvenables

    (@michaelvenables)

    One last clarification please. If I do end up making changes to the footer.php file in the child theme, don’t I need to include a separate style.css file for the “center-my-name-copyright” code and link it to the footer.php file? Thank you for the help!

    Sure, so as long as you are replacing just the content inside of the “site-info” div (see lines 18-20), it should be centered by the theme without need for extra CSS.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Edit Footer.php file to center copyright and my name information’ is closed to new replies.