Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #659995

    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?

    #660720

    Hey sublime5o,

    Try using avia_meta_header.

    Best regards,
    Josue

    #660836

    That did not work. Nothing showed up at all

    #660837

    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

    #660839

    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.

    • This reply was modified 8 years, 5 months ago by sublime5o.
    #660845

    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

    #660853

    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!

    #660858

    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

    #660884

    Perfect!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Adding Date to Header Meta area’ is closed to new replies.