Mobile app version of vmapp.org
Login or Join
Phylliss660

: How can I set the first two paragraphs as metada description on blogger? I want to configure my meta description to have the initial bit of my post. On my template I just have <data:post.body/>

@Phylliss660

Posted in: #Blogger #MetaTags

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Phylliss660

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gretchen104

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme