Replace dates in apostrophe theme
-
Hi, I’m using the apostrophe theme to create a site to to market future events. I’m using the Apostrophe theme, which I like except one thing: the date that says when the blog was posted.
I’d very much like to keep the date, but I need to be able to manage it (i.e. change it to the date I want). If I show dates in the past I think people will be confused and think the event already has happened. Do anyone know what to do to control the date?
Thanks!
GardThe blog I need help with is: (visible only to logged in users)
-
Hi there, the post date will always reflect the published date of the post. That is not something we can change. I see you have hidden the date with some custom CSS. I might suggest replacing what you have with this and it will hide the small read square also.
.entry-meta { display: none; }If I’m understanding correctly, what you might want to do is to keep the post date hidden and the add the date you wish into the post content, such as at the very beginning. That way you have complete control over the date.
-
Hi, thanks!
Yes, you understand correctly. If I can’t replace the date in the little red squares, I’d like to remove both date and squares. The code that I used before did both, but it causes the blog titles to overlap with the images.However, when I replace it with the code you suggest I see nothing happening. Am I doing anything wrong?
-
Hi again, now it works. Both the dates and the little red squares are gone! Great
But the title issue remains. Is there any way to remove the date without displacing the titles? I tried to add margin on top of the h2 heading. It didn’t work (but that may be because I don’t really know how to code).
Worst case, I can add a narrow white field on every image. But that may end up messy.
-
Glad the code for removing the date has worked. What we can do is to add a bit of bottom margin to the front page entry-meta div only by using the home CSS class set in the opening body HTML tag like this.
.home .entry-meta { margin-bottom: 45px !important; }See what you think with that. You can adjust the 45px value as desired.
-
-
-
Hi, just one more question…
I use Firefox (mostly) and in Firefox the red squares are gone (as they are supposed to), but in Safari, Explorer and Chrome, they are still there. Is there an easy fix for this?Cheers,
Gard -
Edit this rule in your custom CSS
.home .entry-meta { margin-bottom: 45px !important; }so that it looks like this.
.home .entry-meta { display: none; } -
hello! I have the same problem. Could I acess you site to see the final results of this modifications?
-
@prijujane, you have a lot of sites associated with your username, and CSS is theme specific. Can we have a link to the site you are talking about?
-
Hi Priscilla –
could I acess you site to see the final results of this modifications?
You can see the original poster’s site here:
This is the custom CSS they’ve added:
.entry-date { display: none; } .entry-meta { display: none; } .home .entry-meta { display: none; }These forums are for sites hosted on WordPress.com, but you’re running the WordPress software on your own hosting. If you need further help with the self-hosted version of Apostrophe, feel free to post in its forum at WordPress.org:
https://wordpress.org/support/theme/apostrophe
You’ll need a free WordPress.org account to post – if you don’t already have one, you can register here:
https://wordpress.org/support/register.php
Be sure to provide a link to your site when you post so people can help you more easily.
- The topic ‘Replace dates in apostrophe theme’ is closed to new replies.