Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #128962
    Ron
    Participant

    Hi 🙂

    I want not only the date in head of my articles, i want also the time. how i can realize it?

    Ron

    Philippinen Magazin

    #128988
    tikaram
    Keymaster

    @ron66 : It can be done by creating a child theme and customizing your site as desired. If you are comfortable with child theme customizations please let me know.

    Regards,
    Tikaram

    #128990
    Ron
    Participant

    Sorry, but its not the answer of this question!

    In previous version it was simple to change:

    inc/catchbase-core.php
    $time_string = sprintf( $time_string,
    esc_attr( get_the_date( ‘c’ ) ),
    esc_html( get_the_date() ),
    esc_attr( get_the_modified_date( ‘c’ ) ),
    esc_html( get_the_modified_date() )
    );
    change in:
    $time_string = sprintf( $time_string,
    esc_attr( get_the_time( ‘G:i’ ) ),
    esc_attr( get_the_date( ‘j F Y G:i’ ) ),
    esc_html( get_the_date() ),
    esc_attr( get_the_modified_time( ‘G:i’ ) ),
    esc_attr( get_the_modified_date( ‘j F Y G:i’ ) ),
    esc_html( get_the_modified_date() )
    );

    but its not possible in this version.

    Ron

    #129049
    tikaram
    Keymaster

    @ron66 : I recommend you to create a child theme and modify the entry meta function with the following code. Please do not modify the parent theme directly, if you modify the parent theme the changes made will be lost in next theme update.

    $time_string = sprintf( $time_string,
    	esc_attr( get_the_date( 'c' ) ),
    	esc_html( get_the_date( 'F j, Y g:i a' ) ),
    	esc_attr( get_the_modified_date( 'c' ) ),
    	esc_html( get_the_modified_date( 'F j, Y g:i a' ) )
    );

    Let me know if this resolves your issue.

    Regards,
    Tikaram

    #129054
    Ron
    Participant

    thanks for the string, but in whitch file i have to change it?

    Ron

    #129055
    Ron
    Participant

    i found already, thanks 🙂

    but i have additional problem. the language of my theme should be german but its english. how i can change it?

    Ron

    #129125
    tikaram
    Keymaster

    @ron66 :Login to your WordPress dashboard. Go to Settings => General . Select desired language from Site Language. Let me know if this resolves your issue.

    Regards,
    Tikaram

    #129155
    Ron
    Participant

    Thanks for this info, but i know this and this is not the problem.
    I head of my articles, is time and date in english, all other is in german. wordpress is in german language.

    Ron

    #129189
    tikaram
    Keymaster

    @ron66 : You might have missed something while customizing your site. Please post in your site URL.

    Regards,
    Tikaram

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Date and time in header of article’ is closed to new replies.