Possibility to set default Open Graph tags for categories

  • Posts: 224
  • Thank you received: 8
5 years 10 months ago #293948

Hello,
I have activated the social plugins and open graph tags are correctly generated for products pages, but for category pages like
accademiainfinita.it/shop/
accademiainfinita.it/shop/cat/corsi
there are some issues

because those pages have no description or the main category image is not showed in that particular page, the open graphs are not being generated correctly, so I suggest you add in the category configs in backend some options to generate default tags for that category.

Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
5 years 10 months ago #293949

Hi,

There is indeed no code in HikaShop to have open graph tags on listings. They are only for the product pages.
Normally, open graph tags are meant to describe content pages, not listings.
If you look at their website ogp.me/ the type tag only has content elements like article, book or movie. Not classification elements like "category" or "group".
So I'm not sure it would make much sense to add open graph tags there.
If you need to, you can edit the file "listing" of the view "product" via the menu Display>Views and you can add the tags to the header with custom PHP code.

Please Log in or Create an account to join the conversation.

  • Posts: 224
  • Thank you received: 8
5 years 10 months ago #293986

Thank you,
you are probably right, I am just being overzealous about it ::P:

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum