Support » Theme: Quality » Theme does not respect WordPress date/time/locale settings (danish format)

  • Resolved kildegaard

    (@kildegaard)


    Hi,

    I am using the Quality (and Mazino) theme on two danish websites. Our date formatting in Denmark is dd/mm/yyyy (e.i. 24. october 2018) and our time formatting is 24hrs.

    I have set this in the WordPress control and other themes I have used respects this in the post meta.

    The Quality (and Mazino) does not. It seems to be hard-coded for a specific (english) formatting in the theme files instead.

    Best regards,
    Andreas

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi kildegaard,

    Thanks for contacting us,

    Do you want this to be a date format show on your website?
    Like this: http://prntscr.com/l9rgfo

    Thanks

    Hi Imran,

    The correct danish format for the date should be: “22. october 2018” or shorted “22. oct. 2018”.

    Btw: “October” in danish is “Oktober”, but I guess that the names of the months will automatically be translated ass well? (as it does in other themes).

    The time should not be included for the post meta. I only mentioned it because it is included in the comment post meta 🙂 And there it should be formatted for 24 hours in danish – so that the english time format “4 PM” in danish time format should be “16:00”.

    Thanks for your help and quick response – I enjoy your themes!

    Best regards,
    Andreas

    Sorry, I made one mistake – the shorted format should be “22. oct 2018” and not “22. oct. 2018” 🙂

    Hi kildegaard,

    First of all, you will need to create a child theme, because we have to customize the code, with the help of the given link you can create a child theme.

    http://webriti.com/support/discussion/2446/how-to-create-child-theme#latest

    You can read more about child theme here https://codex.wordpress.org/Child_Themes

    After this, you can follow the instructions given below.

    Create a content.php file in your child theme package and paste the following code in the content.php file

    Code link: https://pastebin.com/raw/4c5L6KuA

    Then Create an index-blog.php file in your child theme package and paste the following in the index-blog.php file
    Code link: https://pastebin.com/dCSfQxB7

    then activate the child theme.

    If you don’t need time post meta on your website, find the following code in content.php and index-blog.php file and remove this.

    <?php echo get_the_time(); ?>

    Any Confusion lets me know.

    Thanks

    Hi Imran,

    Okay, thanks for your effort.

    Just to be clear, I was hoping that the theme could automatically use the date/time formats selected in generel settings in the WordPress control panel as others themes do?

    But that is not the case then? Maybe in a future update?

    I would like to avoid using a customized child theme as there usually seems be troubles when the parent theme is updated – and I would like to be able to update the parent theme as new vesions get released 🙂

    Bedst regards,
    Andreas

    Hi kildegaard,

    Ok, We will implement this issue in the next update or new version,

    Close this topic.

    Thanks

    Super – thanks!

    Best regards,
    Andreas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Theme does not respect WordPress date/time/locale settings (danish format)’ is closed to new replies.