Jump to content

Tumblr / Html Question


fsiebert

Recommended Posts

Hi, I am trying to make it so only the post titles appear on the homepage, while the body only appears once you click on the title. Here is the body of my page,

<body> <div id="container"> <a id="AHeader" href="http://www.francissiebert.com/">{Description}</a> <div id="spacer"></div>{block:Posts} {block:Text} <a id="AHeader2" href="{PermaLink}">{Title}</a> {/block:Text} {Body}{/block:Posts} </div><!—End container—></body>]
Thank you.
Link to comment
Share on other sites

I've never used tumblr so I'm not sure how it'S integrated with your homepage, but in my mind it would be easiest if the title element and the content/body element had a unique relationship to each other, like a direct sibling relationship, so that way you could just use DOM methods to target the content/body element when any title is clicked. Also of course, you want to have all the content/body elements hidden on load first.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...