Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #6126
    Richard R
    Participant

    Hi,

    I’m wanting change the date format in the post meta. Specifically, I want to change it to dd month yyyy.

    Thanks

    #6128
    Kory
    Keymaster

    Hey Richard,

    Thanks for writing in! We’ll be happy to show you how to do this, but it will require setting up a child theme to alter some of the theme’s functionality. There’s an article in the Knowledge Base about how to do this, and you can find it here. Once you have it setup and can confirm that everything is working, let us know and we’ll let you know what to do next.

    Thanks!

    #6533
    Justin
    Participant

    I’m also interested in doing this. Child theme is set up and ready to go to make this change & also change the comments link from permalink/#comments to permalink/#disqus_thread as per this thread: http://theme.co/x/member/forums/topic/custom-read-more-button-and-tags-color/

    Cheers.

    #6559
    Kory
    Keymaster

    Hey Justin,

    We will be happy to help you with the Disqus comments in the other thread! Before we begin, the same question applies here, first let us know which Stack you’re using as this will determine which files we overwrite.

    Thanks!

    #6583
    Richard R
    Participant

    Hi,

    Child theme is all setup. I’m using renew stack.

    What actions do I need to take next to change the date format in post meta?

    Thanks.

    #6585
    Rubin
    Keymaster

    Hey Richard,

    go to /framework/functions/global/renew.php and look for line 104.

    esc_html( get_the_date( 'm.Y' ) )

    change it to:

    esc_html( get_the_date( 'd.F.Y' ) )

    Hope this helps!

    #6587
    Richard R
    Participant

    No need for the child theme then …

    Thank you very much. Worked perfectly.

    #6588
    Rubin
    Keymaster

    Hey Richard,

    We recommend that you use the child theme, otherwise when you update the theme all your changes will be gone. Glad it works now. If you need anything else let us know!

    #6728
    Richard R
    Participant

    OK,
    I’ve copied the whole function of “Entry Meta” from the renew.php into the functions.php of the child theme.

    Seems to be working fine – have I done this correctly?!

    #6730
    Rubin
    Keymaster

    Hey Richard,

    Are you trying to use a child theme? Then no. The idea of a child theme is that it mirrors the parent theme and only files that you want to change get copied over to the child theme. So you would copy /framework/functions/global/renew.php into your child theme and open the file make the edits and save it. So the file in the child theme will overwrite the file in the parent theme as long as you have that file in the child theme. So whenever you update the parent theme nothing will happen to the child theme. Hope this helps!

    #6735
    Richard R
    Participant

    Thanks

    #6739
    Rubin
    Keymaster

    No problem, if you need anything else let me know!

  • <script> jQuery(function($){ $("#no-reply-6126 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>