Viewing 4 posts - 1 through 4 (of 4 total)
  • #49450
    Frédéric Serva
    Member
    Post count: 4

    Hi,

    In Neighborhood, dates are always returned with the get_the_date() template tag.
    But the default parameter for this tag is the date_format option (‘Date Format’ on Settings > General panel).
    Then dates are always returned with the administration language, even if you use WPML.

    In posts/pages: no problem! You can use a child theme and change the code in (e.g.) single.php.
    But in archives pages, you have to modify the file named sf-post-formats.php that can’t be included in a child theme.
    So, when you upgrade the theme, all the modifications are lost.

    Is there a solution not to loose my modifications of the theme?

    Here is the modified code (Administration language: English – Website in English & French)

    		if(ICL_LANGUAGE_CODE==en){
    			$post_date = get_the_date('F j, Y');
    		} else {
    			$post_date = get_the_date('j F Y');
    		}
    
    #50204
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    please take backup of this code and put when after upgrade theme .

    With Best Regards
    Swiftideas Themes

    #50407
    Frédéric Serva
    Member
    Post count: 4

    That’s what I did 🙂

    #50417
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am happy that you have done .
    Cheers !
    With Best Regards
    Swiftideas Themes

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register