Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Nota › Post Date
New Landing › How can we help? › Themeforest Theme Support › Nota › Post Date
- This topic has 13 replies, 2 voices, and was last updated 7 years by David Martin – Support.
-
Posted in: Nota
-
December 2, 2016 at 5:49 pm #304969
Hi,
How do I change the blog date format to display correctly for UK (DD . MM. YY)
Changing the WP date format only seems to change the Recent Posts, not the Blog or the Blog single posts.
James
December 2, 2016 at 5:57 pm #304973Please install and activate the supplied child theme, inside the child theme
functions.php
file paste this:/* POST DATE OUTPUT ================================================== */ if ( ! function_exists( 'nota_post_date' ) ) { function nota_post_date( $color = null ) { $post_date_day = $post_date_month = $post_date_year = $post_date_str = $post_date_output = ""; $post_date_day = get_the_date('d'); $post_date_month = get_the_date('m'); $post_date_year = get_the_date('y'); $post_date_str = get_the_date('Y-m-d'); if ( !empty( $color ) ) { $post_date_output .= '<div class="narrow-date-block" itemprop="datePublished" ' . $color . '><span class="day">'.$post_date_day.'</span> <span class="date-seperator">.</span> <span class="month">'.$post_date_month.'</span> <span class="date-seperator">.</span> <span class="year">'.$post_date_year.'</span></div>'; } else { $post_date_output .= '<div class="narrow-date-block" itemprop="datePublished"><span class="day">'.$post_date_day.'</span> <span class="date-seperator">.</span> <span class="month">'.$post_date_month.'</span> <span class="date-seperator">.</span> <span class="year">'.$post_date_year.'</span></div>'; } return $post_date_output; } }
December 3, 2016 at 2:16 pm #305039Thanks David. That works great. Thanks also for the fast response.
James
December 3, 2016 at 2:18 pm #305040Glad to help you out James!
If you have found the theme/support useful, we appreciate it if you can leave feedback on our item as it really helps us also.
Thanks,
David.December 3, 2016 at 2:25 pm #305042I will do.
Since posting I have noticed that after activating the Child Theme there is now what appears to be a shortcode displaying at the very top of the page…
[insert page=’notification’ display=’content’]
December 3, 2016 at 2:50 pm #305046Hi James,
That is likely from a plugin, not from the theme specifically.
Thanks.
December 3, 2016 at 3:29 pm #305048I have deactivated all plugins and the text is still showing [insert page=’notification’ display=’content’]
It goes away when I reactivate the NOTA theme (rather than NOTA Child)
December 3, 2016 at 10:01 pm #305054That’s odd, can you add a WP login/FTP details?
Thanks.
December 4, 2016 at 12:15 am #305056This reply has been marked as private.December 5, 2016 at 5:09 pm #305169Hi James,
Those credentials are not working for me. Could you check?
Thanks.
December 5, 2016 at 8:30 pm #305232Hi David,
Please try again with the details shown above when you have a chance.
thanks,
JamesDecember 5, 2016 at 8:53 pm #305239Great, that worked.
Seems to be the shortcode within your widget, from within the Global Banner:
December 6, 2016 at 10:30 pm #305441Thanks David.
Yes, I can now see that this is from a redundant plugin.
Appreciate you looking into it form me!
cheers,
JamesDecember 7, 2016 at 10:08 am #305470No worries James, glad to help you out.
Thanks.
-
Posted in: Nota
You must be logged in and have valid license to reply to this topic.