Replete 2.4 I am trying to add a date beside the date in footer. No luck.
Help please.
Thanks,
RW
Hi wmg2013!
You need to create a child theme and edit the footer.php file and add the below code where you need the date to show dynamically.
<?php echo date(‘Y’); ?>
or use a plugin https://wordpress.org/plugins/search.php?q=Copyright
Regards,
Vinay Kashyap
Hi Vinnie,
I tried a couple plugins and I am not having any luck getting the date changed where it needs to be changed.
Below I have pasted the socket area in footer.php (Where exactly do I put the code you sent me? <?php echo date(‘Y’); ?>
I have been told we are running a child theme already but I could not find the footer.php code in there. It was in the parent.
Is the child theme missing this file? I see in the themes panel that child is the active theme.
<!– ####### SOCKET CONTAINER ####### –>
<div class=’container_wrap socket_color’ id=’socket’>
<div class=’container’>
<span class=’copyright’>© <?php _e(‘Copyright’,’avia_framework’); ?> – ‘><?php echo get_bloginfo(‘name’);?><?php echo $kriesi_at_backlink; ?></span>
<?php
echo “<div class=’sub_menu_socket’>”;
$args = array(‘theme_location’=>’avia3’, ‘fallback_cb’ => ”, ‘depth’=>1);
wp_nav_menu($args);
echo “</div>”;
?>
</div>
</div>
<!— ####### END SOCKET CONTAINER ####### –>
Thanks,
RW
I think I have it now. Just need to figure out how to add a space between the date and the copyright symbol.
Hi!
Great! Please add the below code for space after the © symbol add it 2 or 3 times if you like more space
Cheers!
Vinay Kashyap