Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to configure my meta description to have the initial bit of my post. On my template I just have <data:post.body/> and there is nowhere where I can get only the first bit.

Is there a way to break down the <data:post.body/> to use in the meta description?

maybe via javascript?

share|improve this question

You could wrap the initial bit of your post in a span called initial:

<span class="initial">Here's the first bit.</span> Here's the rest.

and then use that span in the meta description as span.initial.

I got the idea from the technique described in this article

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.