Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

[Question] How to edit the social media tags helper?

  • #6019
    Avatar photo[anonymous]

    Hello Publii-Team and Publii-Users!

    I discovered Publii two weeks ago. It is a great software suite that I like very much. Nevertheless, there are certain sections in the source code that I would like to vary and optimise, for example the social media tags.

    In the directory …input\themes\simple\partials… there is the file named head.hbs, there is the declaration {{socialMetaTags}} in line 18.

    Where can I find the original source code to change the details for the Open Graph Protocol (#ogp)? How can I change the output individually? I use Windows as a platform. I have not yet found the user directory on my hard disk, where this source code can be edited.

    The user manual describes this here:
    https://getpublii.com/dev/socialmetatags-helper/

    How can I add more elements to the #ogp output code, for example an article tag or the tag for different languages?

    Thanks,
    PENNULA

    #6030
    Avatar photo[anonymous]

    Hi,

    Then only solution would be creation of custom helper which will extend the available helper: some example helpers can be founded here https://getpublii.com/dev/tags/custom-helpers/

    But I suppose that it will be quite complicated.