artesaos / seotools

SEO Tools for Laravel
MIT License
3.1k stars 505 forks source link

Question: How do I set or override the <title> tag? #259

Closed abishekrsrikaanth closed 2 years ago

abishekrsrikaanth commented 2 years ago

How do I set the <title> tag on the pages? Using SEO::setTitle() or SEOMeta::setTitle() only sets the meta tags and not the <title>. It defaults to what is set on the config. I want to be able to override the <title> or atleast set the value to what is set on the setTitle methods from the above facades. How do I go about doing it?

J-Brk commented 2 years ago

You are setting it correctly. What do you use in your template to generate/output the tags?

abishekrsrikaanth commented 2 years ago

I am using {!! SEO::generate() !!} to generate and the <title> tag is generated only with what is setup on seotools.meta.defaults.title

J-Brk commented 2 years ago

I'm unable to simulate your problem. I have tried SEOMeta and SEOTools and both where able to set the title correctly.

J-Brk commented 2 years ago

I'm closing this issue do to inactivity.