Hi there,
I’m trying to figure out how to hide the “posted on” text from the post date meta info. I’m using a Vantage Premium child theme, and have looked at the Vantage Premium functions.php and can’t find anything.
Thanks in advance!
hide “posted on” text
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi tkanotz
One very easy way to handle this would be with some custom CSS.
Or you could filter this text using the vantage_posted_on filter.
Either of those should do the trick.
Hi Greg,
Thanks for your response. I’m actually just trying to hide the “posted on” text that shows up before the date. I still want the date and year to show, so using display: none won’t work. I’m sure it’s somewhere in the PHP but I can’t identity which file I need to modify to remove the “posted on” text specifically. Does that make sense? Thx
Here is what the html looks like from Firebug:
Posted on
I need to remove the “posted on” text between and
Hi tkanotz
Did you perhaps try Greg’s second solution. You’ need to paste that snippet into a functions.php file within a child theme after the opening
I think that will do the same thing and remove the entire posted on date, where I just want to remove the “posted on” text that comes before the actual date/month/year.
Hi again,
I actually figured this out. I had to go in to the “template-tags.php” file and that’s where I could remove the “posted on” text. Now I have another issue…I want to abbreviate the month to the 3-letter abbreviations. Any ideas?
To start, a bit of a disclaimer. We can only point you in the right direction with these sorts of changes. We can’t actually help you with all the steps involved. We generally say suggest a feature instead of trying to make these changes yourself – https://siteorigin.com/suggest-feature/
For this, you’ll probably want to copy the vantage_posted_on function to your child theme. You’ll need to edit what’s currently on line 150 of template-tags.php. You’ll need to change that ‘c’ – this accepts a PHP date string – http://php.net/manual/en/function.date.php
If you just want to get rid of the actual Posted On text, then you’d need to make a slight modification to the function I posted.
Hi Greg,
Thanks or letting me know about the “suggest a feature”. Will definitely use that down the road. Thanks also for the function modification. I also easily researched how to abbreviate the month so I’m all set there as well. Thx!
One more question on this same subject. I would like to re-arrange the date info and have different CSS for the month, day and year. It seems that they are all lumped together in one style and I can’t determine how to separate them. Would this be a function issue or a php template issue? Thx
This would be possible using escaping in the formatted date. You can find out more about escaping on the PHP date page.
http://php.net/manual/en/function.date.php