How To Make Blog Title Appear After Blog Post Title In Facebook?


#1

Whenever I share my blog post on Facebook my post title appear after blog title. so how to fix it?

Looking for helping hand! please reply if anyone know about that :slight_smile:


#2

@shoutersclub, First search the

<title><data:blog.pageTitle/></title>    in Template HML  and then Replace it with following code

  <b:if cond='data:blog.pageType == "item"'>
 <title><data:blog.pageName/> | <data:blog.title/></title>
 <b:else/>
 <title><data:blog.pageTitle/></title> </b:if>

May be, It work for you.


#3

Dear @GKVish, I think, facebook have enabled this. You can check it by pasting a mbt url, you will find that MBT post’s title will appear after My Blogger Tricks:

That’s not our template issue


#4

@Shivansh , May Be. Thanks For Letting me Know.


#5

@Shivansh Even I am confused! Can you share a screenshot of what you mean because Facebook is showing the post title only and does not add the blog title after it?

@GKVish your code for swaping the titles is correct but I would like to recommend the following one instead

@shoutersclub Kindly search for the <title> tag code inside your template located just under <head> Replace the entire title tag code with the following one

<title>
		<b:if cond='data:blog.pageType == &quot;index&quot;'>
			<data:blog.pageTitle/>
		<b:else/>
			<b:if cond='data:blog.pageType != &quot;error_page&quot;'>
				<data:blog.pageName/> - <data:blog.title/>
			<b:else/>
				404 | <data:blog.title/> 
			</b:if>
		</b:if>
    </title>

The above code will show your Blog Title on homepage but It will show the blog Title at the end of your post title tag in Post pages. This will produce the effect you want on both social media networks and also SERPs


#6

Thank you so much @Mohammad sir, @Shivansh, @GKVish :smile:


#7