Site logo

Archived topic

Dynamic Copyright fuction

1 reply · Started by Travis on June 20, 2018

Viewing posts 1–2 of 2

Is there a way to have the Site Name be dynamic in the footer where the copyright is the same way the year gets generated? I'm looking to trim down some of the steps when launching a new site. Thanks!

You could use a GP hook instead with something like this that automatically pulls in the Current Year and Site Title:

<div class="grid-container" style="text-align: center;">
    © <?php echo date('Y'); ?> &nbsp; <?php bloginfo( 'name' ); ?> 
</div>

Then a little CSS to hide the default footer:

.site-info {
    display: none;
}

Alternative is to create a shortcode for <?php bloginfo( 'name' ); ?> and add this to the footer.

But looking at all that i think it would be quicker just to add the Site Title in manually.
:)

This archived topic is closed to new replies.