I want to change the value of og:image property for below tag programmatically.

<meta property="og:image" content="https://example.com/sites/default/hotelier_in/styles/themes/hotelierindia/logo.png" />

Currently its displaying https://example.com/sites/default/hotelier_in/styles/themes/hotelierindia/logo.png

but I want to alter the value to https://example.com/sites/default/hotelierindia/hotelier_in/2019/01/08/styles/full_image/logo.png

  • This value probably has been added using the Metatag module. This module has settings you can configure to your needs. Set values globally or per node type or override the value for single nodes. – leymannx Sep 13 '19 at 9:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.