Tagged: ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Nota
  • #304969
    ritchmedia
    Member
    Post count: 66

    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

    #304973
    David Martin – Support
    Moderator
    Post count: 20834

    Please 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">&#46;</span> <span class="month">'.$post_date_month.'</span>  <span class="date-seperator">&#46;</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">&#46;</span> <span class="month">'.$post_date_month.'</span> <span class="date-seperator">&#46;</span> <span class="year">'.$post_date_year.'</span></div>';
                }
                
                return $post_date_output;
                
            }
        }
    #305039
    ritchmedia
    Member
    Post count: 66

    Thanks David. That works great. Thanks also for the fast response.

    James

    #305040
    David Martin – Support
    Moderator
    Post count: 20834

    Glad 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.

    #305042
    ritchmedia
    Member
    Post count: 66

    I 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’]

    #305046
    David Martin – Support
    Moderator
    Post count: 20834

    Hi James,

    That is likely from a plugin, not from the theme specifically.

    Thanks.

    #305048
    ritchmedia
    Member
    Post count: 66

    I 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)

    #305054
    David Martin – Support
    Moderator
    Post count: 20834

    That’s odd, can you add a WP login/FTP details?

    Thanks.

    #305056
    ritchmedia
    Member
    Post count: 66
    This reply has been marked as private.
    #305169
    David Martin – Support
    Moderator
    Post count: 20834

    Hi James,

    Those credentials are not working for me. Could you check?

    Thanks.

    #305232
    ritchmedia
    Member
    Post count: 66

    Hi David,

    Please try again with the details shown above when you have a chance.

    thanks,
    James

    #305239
    David Martin – Support
    Moderator
    Post count: 20834

    Great, that worked.

    Seems to be the shortcode within your widget, from within the Global Banner:

    #305441
    ritchmedia
    Member
    Post count: 66

    Thanks David.

    Yes, I can now see that this is from a redundant plugin.

    Appreciate you looking into it form me!

    cheers,
    James

    #305470
    David Martin – Support
    Moderator
    Post count: 20834

    No worries James, glad to help you out.

    Thanks.

Viewing 14 posts - 1 through 14 (of 14 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