To insert code in a forum thread or comment wrap it in code tags : <code>...</code>.
php in Copyright Footer Text
  • Is it possible to use php in the footer text. I have tried to use one of the php plugins , but the php is not being parsed and it just appears as code in the output.

    I would like to include the year in the Copyright text and want to make it dynamic, so that it changes automatically each year.

    Copyright (<?php echo date('Y'); ?>) Barry Dalrymple | All Rights Reserved.

    Any solution would be appreciated.

  • 3 Comments sorted by
  • Hi Smitp11,

    You can edit on 'striking/footer.php'

    Locate line 129.

    Change the code blow

    <div id="copyright"><?php echo wpml_t(THEME_NAME, 'Copyright Footer Text',stripslashes(theme_get_option('footer','copyright')))?></div>


    <div id="copyright">Copyright (<?php echo date('Y'); ?>) Barry Dalrymple | All Rights Reserved. </div>

  • Thanks, I ended up using:

    <div id="copyright">Copyright (<?php echo date('Y'); ?>) <?php echo get_bloginfo('name'); ?> | All Rights Reserved. </div>

    so the Site name is also dynamic.
  • From one Canadian to another (I am Canadian although most of the Websys team is not, and not even in Canada), COOL!
This discussion has been closed.
All Discussions
17 Mar 2018.

We experienced some issues in late Feb / Early March with our functions which provide you a notification in your dashboard of an available theme update. This has now been fixed.

If you are already using MultiFlex Ver 1.2.9 then you are using the latest them version thus no notification will show. Otherwise you should go to your Update settings in the theme and click on the button to check for updates.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion