I would like to slightly change all date information concerning Shopify Blog Overview as well as Posts.
It concerns these two pages attached as screenshot below.
-
first I would like to the Day information (as well as the comma).
Instead of ‘January 18, 2022’ it should Say ‘January 2022’
-
I do not want the font do be ALL CAPS. January 2022 instead of JANUARY 2022
(If there are other places through the theme where dates appear they schould all be treated in the same Not Allcaps way)
thank you
Sure @Designbureau ,
Please post your blog/store url and I’ll have a look.
Sorry, like always, I cant do that. I have to respect my client’s privacy. Please understand that I do not want to give access to a store that is under construction.
It is a classic Dawn Theme with very minor changes.
Hi there, can you try below:
(Note: My Dawn version somehow looks different from yours, I hope this still works for you)
1. Date format from ‘January 18, 2022’ to ‘January 2022’
- Go to Themes > Edit Code, look for a liquid file called “article-card.liquid”
- Use search to look for time_tag: format in the file
- You should see something like time_tag: format: ‘month_day_year’
- Change it to this time_tag: format: ‘month_year’
2. Remove UPPERCASE styling for date
- This could be a little tricky as you need some familiarity with CSS (cant pin point for you without accessing the site)
- You have to either look for the CSS class / add a new class with below:
- text-transform: none!important;
Hope this helps.
ps. please mark this as solution if it does.
I have sent the code, plz replace it in your theme files.
1 Like
thank you, worked perfectly
(you should share your solution here)
in the article-card.liquid file find the below-highlighted lines and replace that line with this code
{{ article.published_at | date: "%B %Y" }}
plz, find the below-highlighted line in main-article.liquid file and replace it with the below code.
{{ article.published_at | date: "%B %Y" }}
Hello. This is almost what I need. What is the code to remove the dates from blogs on Dawn Theme? Thanks.