Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #371529

    Hey Enfold Support,

    I would like to add //* <?php echo do_shortcode(“[date]”); ?> *// to float right of the main navigation menu.

    In my other theme, I had replaced the search function with to php shortcode the date (Which I added to the functions.php file. Please tell me what file controls the header layout of the Enfold Theme and/or where you would suggestion adding the shortcode.

    Thank you!

    -Mike

    #371737

    Hey Mike_Yoon!

    You could try adding this to the bottom of your functions.php file.

    add_action( 'ava_after_main_menu', 'enfold_customization_add_date' );
    function enfold_customization_add_date() {
    echo '<span class = "header_date">'.do_shortcode('[date]').'</span>';
    }

    But you’ll probably need to do some CSS work also. Send us a link to your page so we can see what header layout your using.

    Best regards,
    Elliott

    #371767
    This reply has been marked as private.
    #371854

    Hey!

    I think what your wanting to do is this then.

    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>';
    }

    And then add this to your custom CSS.

    .header_date {
        position: absolute;
        width: 100px;
    }

    Cheers!
    Elliott

    #372016
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Adding "PHP Date Shortcode" to Navigation Menu’ is closed to new replies.