Ad

How Can I Add Text On Meta Expr:content?

- 1 answer

I have a live streaming site, I am having trouble adding text to

<meta expr:content='data:blog.pageName' property='og:title'/>

I would like to put text before and after the data:blog.pagename data tag, so that it will show up in facebook as ( Watch "title of the post" Live Free ).

I am trying something like this below, but it is not working. Please help

<meta expr:content='Watch + data:blog.pageName + Live Free' property='og:title'/>

Here is my blogger website URL = https://www.nbalink.com/

Ad

Answer

You will need to enclose the text with double quotes ("). The following format will work

<meta expr:content='"Watch " + data:blog.pageName + " Live Free"' property='og:title'/>
Ad
source: stackoverflow.com
Ad