I am looking to add this function
add_action( 'ava_inside_main_menu', 'enfold_customization_add_date' );
function enfold_customization_add_date() {
echo '<span class = "header_date">'.get_the_time('F j, Y').'</span>';
}
to the end of the header_meta area (top bar), what should I use instead of ava_inside_main_menu?
Hey sublime5o,
Try using avia_meta_header
.
Best regards,
Josue
That did not work. Nothing showed up at all
Hey!
To make sure, have you used the code as following
add_action( 'avia_meta_header', 'enfold_customization_add_date' );
function enfold_customization_add_date() {
echo '<span class = "header_date">'.get_the_time('F j, Y').'</span>';
}
It should work fine. If it does not, please create a temporary admin login and post it here privately.
Regards,
Yigit
I added that exact code and it does not show up in my header_meta area, or anywhere. This is on my localhost so you would not be able to access it yet.
Hi!
Is header meta showing up? Please make sure to go to Enfold theme options > Header > Extra Elements and choose to display some elements in header meta.
Cheers!
Yigit
I moved this to a staging server now, in the pvt area is the access. I have header meta items up as you will see. Thanks!
Hey!
I added a dummy menu item in secondary menu that i created in Appearance > Menus and hid that menu item using custom CSS, now date shows up fine. Please review your website now
Cheers!
Yigit
Perfect!