[Support request] Dynamic Copyright fuction

Home Forums Support [Support request] Dynamic Copyright fuction

Home Forums Support Dynamic Copyright fuction

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #604620
    Travis

    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!

    #604790
    David
    Staff
    Customer Support

    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.
    🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.