Closed SaphiLC closed 5 years ago
and looks like its also abandoned...
@SaphiLC so I'm not using SEO:: currently, but this works fine
SEOMeta::setTitle('Home');
SEOMeta::setDescription('This is my page description');
SEOMeta::setCanonical('https://codecasts.com.br/lesson');
OpenGraph::setDescription('This is my page description');
OpenGraph::setTitle('Home');
OpenGraph::setUrl('http://current.url.com');
OpenGraph::addProperty('type', 'articles');
Twitter::setTitle('Homepage');
Twitter::setSite('@LuizVinicius73');
@SaphiLC please give more details about issue:
And please note that OpenGraph provider does not contain method addAttribute it has method addProperty.
I followed your scenario with the current version v.0.14.0 and everything works fine:
Set description for all providers:
SEO::setDescription('Sample Description');
in debug I see that all providers contain description value.
Then set other description for OpenGraph:
SEO::opengraph()->setDescription('Other Description');
and can see that description was updated for openGraph provider to new value.
If i use SEO::setDescription and then SEO::opengraph()->setDescription or SEO::opengraph()->addAttribute('description'... only the description meta renders, for twitter, its always empty... if i remove SEO::setDescription then og description appears... so, either the documentation is wrong, or this packed is buggy