• Hi,

    I just moved my site from the free wordpress to a selfhosted wordpress site. I could change almost everything the way I made my blog look on the free version thanks to this forum and css codes, except for the ‘featured’ text for sticky posts on the homepage which shows my recent posts and the date format for the other ones.

    1. On the free wordpress version ‘Featured’ appears on the bottom of sticky posts where normally you would find the date.

    -> Is there a way to tell the theme to show ‘Featured’ or in my case the Dutch translation ‘Uitgelicht’ when a post is sticky?

    2. On the free wordpress version the date format is e.g. 20 april 2019 (which shows correctly at the bottom of the post when going to the post itself). Here however, the date format is 2019/04/20. Which is also totally opposite of how we write dates in my country.

    -> Is there a way to make the date like the first one mentioned? If not, can it be transformed to 20/04/2019?

    A huge thank you in advance!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Jessie @jessiespitfire ,

    usually, you can choose/change the date format via backend (Instellingen > Algemeen > Datumnotatie).
    Possible parameters for option #5 can be found at

    Formatting Date and Time


    in case you need them.

    Unfortunately, Baskerville does not use these standard settings in the masonry view. However, if you happen to use a child theme, you can fix that with a custom function:

    add_action( 'the_time', 'my_own_datetimeformat');
    
    function my_own_datetimeformat() {
    	$text = the_date('j F Y');
    	if ( is_sticky() ) {
    		$text = $text . " Uitgelicht";
    	}
    		return $text;
    }

    It is a kind of “extended version” of the code in this post:
    https://www.ads-software.com/support/topic/how-to-resolve-issues-with-date-format-requires-child-theme/

    Theme Author Anders Norén

    (@anlino)

    Hi @jessiespitfire,

    I’ve updated the date format of the meta output in Baskerville 2.1.1, so once you’ve installed that update, all of the date output in Baskerville should match the date format you’ve set in the WordPress settings.

    As for the extra text output in the bottom of sticky posts, you (or someone you hire) would need to add that output in a child theme by updating the baskerville_meta function.

    — Anders

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘‘Featured’ text instead of date when sticky post, change date format’ is closed to new replies.