2011-06-11, 08:14:40
macky Wrote:Hi, is it at all possible to move the post date below the post title?You would have to change the simpletumblr.js code.
Move this section:
Code:
// Create a link to Tumblr post
postDate = document.createElement("div");
postDate.className = "tumblr_post_date";
postLink = document.createElement("a");
postLink.href = post.url;
postLink.innerHTML = (settings.shortPublishDate)? post["date"].replace(/(^\w{3},\s)|(:\d{2}$)/g, "") : post["date"];
postDate.appendChild(postLink);
listItem.appendChild(postDate);
// Apply list item to list
list.appendChild(listItem);
to just after the line:
Code:
text = post["regular-body"] || post["photo-caption"] || post["quote-source"] || post["link-text"] || post["link-url"] || post["video-caption"] || "";
(and before the if statements).
It might also be possible with your CSS - as everything is in nested DIVs...
macky Wrote:Also how would I go around making the post title the link to the post rather than the date?
Thanks!
That's problematic, as not all post even have a title, so in many cases there would be nothing to make the link from. (every tumbler post will have a post date/time, that is why it is normally used as the link)
But you could modify the js file to change this as well.
-Rob A>