Meta Description Missing how do i find it

Merchant
Fra United Kingdom
Medlem siden

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
Fra Sweden
Medlem siden
tim

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

Merchant
Fra United Kingdom
Medlem siden

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
Fra Sweden
Medlem siden
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
Fra United States
Medlem siden

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

LiteCart Fan
Fra United Kingdom
Medlem siden

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
Fra Sweden
Medlem siden
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.

Du
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.