Meta Description Missing how do i find it

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ มี.ค. 2021

Hi
My Meta Description Tag is missing. I might have deleted it by mistake, so how can I find it, if it exists, or how can I add it if it doesn't ?

thanks in advance

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

This is the "guess the page" game, yes? Right answer wins an ice cream? 😉

Merchant
จาก United Kingdom
เป็นสมาชิกตั้งแต่ มี.ค. 2021

Very funny !
Except all my pages are missing a meta description.
It's missing from "Translations", how cxan I re-add it to Translations ?

Regards

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

If you look at each and every file in the folder pages/. You will see a line of code that begins with

document::$snippets['description'] = ...

Sometimes it's displaying a translation. Sometimes it's a value from an entity like products or categories. Sometimes the page has no description.

LiteCart Fan
จาก United States
เป็นสมาชิกตั้งแต่ ก.พ. 2024

You can add meta tags to the default.inc.php file in /includes/templates/(your template)/layouts/default.inc.php

LiteCart Fan
จาก United Kingdom
เป็นสมาชิกตั้งแต่ ก.ค. 2019

If you want to add it to (maybe reinsert?) it into the database then open phpadmin and look for translations and then select "Browse".
You should get something in the order of 1300 rows.
Hit the "Search" tab and then in Column "Code" use "Operator" "Like%...%" and in "Value" add Meta.
If you then can't see in the Code column - index:meta_description - it is indeed missing.
If it is then add a new entry - quick and (possibly?) dirty - pick any entry that has html=0, frontend=1, backend=0 and copy changing the code to index:meta_description.
Go back to litecart and translations and it should be there.

tim
Founder
จาก Sweden
เป็นสมาชิกตั้งแต่ พ.ค. 2013
tim

It is also possible to go to Admin -> Translations and type meta_description in the search field to get those not belonging to entities.
In the next feature release (2.6.0) you will also be able to translate entities like Products and Categories under translations.

คุณ
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.