-
AuthorPosts
-
February 14, 2016 at 1:11 am #582803
Replete 2.4 I am trying to add a date beside the date in footer. No luck.
Help please.
Thanks,
RWFebruary 15, 2016 at 9:25 pm #583769Hi 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 KashyapFebruary 15, 2016 at 10:58 pm #583811Hi 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,
RWFebruary 15, 2016 at 11:43 pm #583823I think I have it now. Just need to figure out how to add a space between the date and the copyright symbol.
February 16, 2016 at 8:31 am #583945Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
