falcon icon indicating copy to clipboard operation
falcon copied to clipboard

🐛 [BUG] - dynamicaly changing meta title and description

Open kanik588 opened this issue 11 months ago • 5 comments

Description

Hello,

In order to improve SEO, I am programmatically modifying the meta title and description of both product and category pages. However, I am encountering difficulties when it comes to updating the titles and descriptions for Facebook, Twitter, and JSON-LD. It appears that these elements are rendered before the page rendering process.

Node.js version

php version

8

OS and it's version

Browsers

No response

Required module/theme

is_themecore

Reproduction steps

{$category['meta_title']=$meta_title}
{$page['meta']['title']=$meta_title}
{$category['meta_description']=$meta_description}
{$page['meta']['description']=$meta_description}
{block name='head_seo_title'}{$meta_title}{/block} <-- this works
{block name='head_seo_description'}{$meta_description}{/block} <--this works

Logs

No response

kanik588 avatar Jul 17 '23 11:07 kanik588