Add Text Before Modified Date on blocks

Posted in: Newspaper
Post count: 6

hi, I would like to figure out how to add text before the modified date on blocks. It shows the modified date just fine, but I’d like to add “updated on” in front. I’m using the Flex Block 1, as an example.

Thanks

Post count: 35449

Hi,
This can be done using a custom css like this one:
.td-module-date:before{
content: "Updated on: ";
}

Set this code in the theme panel > custom code> custom css.
I hope it will help you!
Thank you!

Post count: 6

Worked perfectly. Thanks!

Post count: 29

Hello, Calin —
I am new to CSS and relatively new to TagDiv.
When I use the code you supplied, it will put “Updated on: ” in front of the Single Post Modified Date (that’s good).
But it also puts “Updated on” in front of the Single Post date.

Can you tell me the CSS code that would put “Updated on: ” ONLY in front the modified date?
On the Flexblock it looks fine.

But on the page template, I have both the written date and the modified date. And so that CSS code puts “Updated on: ” there twice — before both the original date and the modified date — it’s not good.

Thank you.

.td-module-date:before{
content: “Updated on: “;
}

Post count: 27744

Hello @fredredwoods,

In the single post template, you do not need to use a custom CSS to display the text https://i.imgur.com/roYmObl.png
Also, for the custom code CSS you need to add the class for the blocks that you want to use.

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.