I have created a Views block which displays the fields Node: Title and Node: Date. I have set the date format for Node: Date to "Time Ago."

When it renders the post date, the source code looks like this:

<em>5 weeks 1 day</em> ago

Hard coding the em tag like this makes it impossible to undo the italics through CSS.

Comments

merlinofchaos’s picture

Ugh, those shouldn't even be there. Though actually I think you can undo the italics with

.views-field-FIELDID em { 
  font-style: normal; 
}

(They're not actually hardcoded, the em tag ends up there through theme_placeholder. It's an oddity in Drupal's translation system).

Aaron Stanush@drupal.org’s picture

Status: Active » Fixed

Thanks Merlin, that fixes it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Ankabout’s picture

Version: 6.x-2.0-rc1 » 7.x-3.1
Status: Closed (fixed) » Active

(They're not actually hardcoded, the em tag ends up there through theme_placeholder. It's an oddity in Drupal's translation system).

Sorry for re-opening this, but I can't find more information anywhere on this, and I don't think it's necessary to make a new issue. This is still the case with 7.12 and the latest Views, so I'm wondering where an issue for fixing this "oddity" should be filed?

dawehner’s picture

Status: Active » Fixed

Well it's still a problem of core api not views and http://drupal.org/node/281163#comment-916758 proposed some kind of solution.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

neurojavi’s picture

Hi:

@dawehner: So there's a problem in core API? Is there any issue? I'm not able to find it.

I also think that the solution given in #1 one is not a good one. is a semantic tag and it is very important for SEO purposes. In fact Google Webmaster Tools is telling me that "Semanas" (week in spanish) is the most important word in my site!

I know that this issue is not related to views and that's why I don't reopen this issue but... can someone give me a clue???

Thanks.

Javi.-