Hello friends!
I see that whatever link from my website I am sharing in Facebook as preview display the title and picture of home page!
This is the link I posted to Facebook. https://uugreece.gr/%CE%B1%CF%81%CE%B8% ... E%BC%CE%BF
Why happen this and how we can correct it?
Thank you!
Problem with sharing in Facebook
Problem with sharing in Facebook
- Attachments
-
- Screenshot 2024-05-14 at 18-42-42 https __www.uugreece.gr_%CE%B1%CF%81%CE%B8%CF... - Emmanouil Kalomiris Facebook.png (47.7 KiB) Viewed 2411 times
Re: Problem with sharing in Facebook
Hey erevnitis,
here is an example how Gastronomos.gr is dealing with urls:
https://www.gastronomos.gr/syntages/tav ... me/266384/
If you decide to go with this option, you will probably need to create all pages again.
Not sure if changing them in database.js will work.
Go to Settings > Security and Backup website to create a backup of your site, just in case. Also first do a test page, don't work on current pages.
Create new page with title you want your link to look like using Latin letters (for example: "About me", url will look like "about-me"). After that change page title using Greek letters.
Check how your website Open Graph meta (preview for Facebook, Twitter and other platforms) looks here: https://www.opengraph.xyz/
Update for editing database.js (thread carefully, backup database first)
Database location is root data/database.js
Open database.js with text editor.
There are two places where pages title and slug must be edited "menuItems": and "pages":
Here is how "menuItems": looks, Home example:
And "pages":
Menu items "slug": "home" must be the same as Pages "home" : {...}
So if I want to replace home with index it would look like this:
Now I can replace what title will be for menu and what for page (they can be the same or not):
Menu items:
"name": "Index page", -- this is how it will look inside menu
"slug": "index",
Page:
"index": {
"title": "This is index", -- how it will look inside page
here is an example how Gastronomos.gr is dealing with urls:
https://www.gastronomos.gr/syntages/tav ... me/266384/
If you decide to go with this option, you will probably need to create all pages again.
Not sure if changing them in database.js will work.
Go to Settings > Security and Backup website to create a backup of your site, just in case. Also first do a test page, don't work on current pages.
Create new page with title you want your link to look like using Latin letters (for example: "About me", url will look like "about-me"). After that change page title using Greek letters.
Check how your website Open Graph meta (preview for Facebook, Twitter and other platforms) looks here: https://www.opengraph.xyz/
Update for editing database.js (thread carefully, backup database first)
Database location is root data/database.js
Open database.js with text editor.
There are two places where pages title and slug must be edited "menuItems": and "pages":
Here is how "menuItems": looks, Home example:
Code: Select all
"0": {
"name": "Home",
"slug": "home",
"visibility": "show",
"subpages": {}
},
Code: Select all
"home": {
"title": "Home",
"keywords": "Enter, page, keywords, for, search, engines",
"description": "A page description is also good for search engines.",
"content": "<p>Home page content<\/p>\n",
"subpages": {}
},
So if I want to replace home with index it would look like this:
Code: Select all
"0": {
"name": "Home",
"slug": "index",
"visibility": "show",
"subpages": {}
},
Code: Select all
"index": {
"title": "Home",
"keywords": "Enter, page, keywords, for, search, engines",
"description": "A page description is also good for search engines.",
"content": "<p>Home page content<\/p>\n",
"subpages": {}
},
Menu items:
"name": "Index page", -- this is how it will look inside menu
"slug": "index",
Page:
"index": {
"title": "This is index", -- how it will look inside page