2014 theme: mouseover date, show time

  • Unknown's avatar

    Hey,

    I recently switched to the new Twenty Fourteen theme, and noticed that, unlike in a lot of (all?) other themes I’ve used, hovering the mouse over the date stamp on a post

    does not give the time stamp as a mouseover / “hover over” text. (i.e., in HTML, the “title” attribute of the hyperlink.)

    I’m not sure if this is a bug from the newness of the theme (it’s gorgeous on mobile, where there is no hover text; maybe the design effort was focused on mobile), or if it was a conscious design decision to exclude the time stamp hover text from the new theme (not sure why that would be), but if it’s absent simply by oversight, I’d like to suggest its return, as the hover text is quite handy as an unobtrusive way, when browsing through older posts, to see when I posted them.

    Currently you can see I’ve edited the date formatting in Dashboard -> Settings -> General to prefix the date stamp with a time stamp, but as a matter of coding this is nonideal as the time stamp settings are defined right after that, and they are separate in the code base for obvious reasons of formatting. (e.g. the General settings page currently informs me that Daylight Savings will begin in the US Central time zone at “01.00, 9 March 2014 01:00”)

    Thanks for considering!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
  • Unknown's avatar

    timethief,

    Thanks for the link! It’s a slightly different case, though: OnMouseOver is a JavaScript function which watches the page for where your mouse / cursor is—when it reaches a certain point on the page (as described in the custom JavaScript function), the JavaScript can make the page do something, such as display a pop-up with a picture of your cat or something (for example). By contrast, a mouseover time stamp would not involve JavaScript, but a PHP function call to the WordPress post database.

    Unfortunately, even with a custom design upgrade, I don’t think it’s possible to re-add the time stamp, as it would (I believe) require a function call to the PHP database where posts are stored (and where the time stamps are recorded), and that is not supported by the custom design upgrade:

    The Custom Design upgrade allows you to edit fonts, colors, and CSS only. You can change the appearance of a theme, but not its HTML markup or PHP code. If you require this functionality, please consider moving your blog to a web host that supports theme code modifications[.]

    Source: http://en.support.wordpress.com/custom-design/

  • Unknown's avatar

    I’m sorry you did not find the answer you hoped to find. Best wishes with your blog.

  • The topic ‘2014 theme: mouseover date, show time’ is closed to new replies.