Forum Replies Created
-
AuthorPosts
-
polf0001Participant
Thanks. Sorry, I’m afraid it’s not resolved! That’s the php file as it now is, unedited, and the year doesn’t appear.
Here’s the site: https://www.paper-darts.com/news/
It’s the little red tab on the blog items – it says SEP 30 – where it should be SEP 30 2020.
best wishes,
Nick
polf0001ParticipantScreenshot attached to give line numbers.
[attachment file=”35826″]
polf0001ParticipantThanks, Raghanendra. OK: I have had a look at this php. Here it is. Can you tell me what to edit, please? I just want it to add the year to the month and the day.
<?php
$format = “M d, Y”;
?>
<span class=”published”>
<?php echo __(‘On: ‘, ‘extinct’); ?>
</span>
polf0001ParticipantThat’s OK. Thanks for your help.
polf0001ParticipantThanks for looking. Sorry: that’s not the dropdown I mean. That one is to use a slider as a replacement for the header. But further down the page there’s a section called USE SLIDER AS THUMBNAIL and a dropdown called REVOLUTION SLIDER OPTIONS. There’s a basic slider you can use by adding images one by one, but I wanted to use the revolution slider there, if that’s possible.
polf0001ParticipantThis reply has been marked as private.polf0001ParticipantThanks. I have already installed slider revolution and I have sliders and slides all set up and working on various other pages. But I still only have the “default” under “revolution slider options”. I did install slider revolution as a standalone plugin (version 5.2.6) rather than using the version that came bundled with the Extinct theme. Would that make a difference? It’s the same plugin, isn’t it?
polf0001ParticipantThis reply has been marked as private.polf0001ParticipantYes, thanks, I think it works with that revised line 72.
polf0001ParticipantActually, this seems to work:
$published = ‘<span class=”published”><abbr title=”‘ . sprintf(get_the_time(esc_attr__(‘l, F, Y, g:i a’, ‘mo_theme’))) . ‘”><span class=”date updated”>’ . sprintf(get_the_time(‘d’)) . ‘</span><span class=”month”>’ . sprintf(get_the_time(‘M’)) . ‘</span><span class=”date updated”>’ . sprintf(get_the_time(‘Y’)) . ‘</span></abbr></span>’;
polf0001ParticipantSorry: I’ve tried this but it just makes the date disappear altogether! (Is it definitely a ‘d’ and not a ‘j’ by the way?)
polf0001ParticipantThanks for this. Can you give me a bit more help with the php code, please? If I want to add the year, do I change this:
$published = ‘<span class=”published”><abbr title=”‘ . sprintf(get_the_time(esc_attr__(‘l, F, Y, g:i a’, ‘mo_theme’))) . ‘”><span class=”month”>’ . sprintf(get_the_time(‘M’)) . ‘</span><span class=”date updated”>’ . sprintf(get_the_time(‘d’)) . ‘</span></span></abbr></span>’;
to this:
$published = ‘<span class=”published”><abbr title=”‘ . sprintf(get_the_time(esc_attr__(‘l, F, Y, g:i a’, ‘mo_theme’))) . ‘”><span class=”month”>’ . sprintf(get_the_time(‘M’)) . ‘</span><span class=”date updated”>’ . sprintf(get_the_time(‘d’)) . ‘<span class=”year”>’ . sprintf(get_the_time(‘Y’)) . ‘</span></span></abbr></span>’;
polf0001ParticipantThanks so much – that worked perfectly!
best wishes, Nick
polf0001ParticipantThank you! You’re right – that’s what it was. Sorry for the daft question.
polf0001ParticipantFantastic – thanks so much: that’s done it!
-
AuthorPosts