Core Files to change Meta Properties og:title and og:image
-
-
-
@julian Is there no global file where I can set a default image? I.e. If I wanted to just link the home page to a Facebook link I want it to display an image set by me and not the site-logo.png.
-
NodeBB/src/meta/tags.js at master · NodeBB/NodeBB
Node.js based forum software built for the modern web - NodeBB/src/meta/tags.js at master · NodeBB/NodeBB
GitHub (github.com)
I don't know what'll happen if you define an image here and another image is present in the topic. Give it a try and see.
-
Thanks @julian! The code is a bit daunting and I don't want to risk breaking anything at the moment. Is there any other way for me to change the og:image meta property? I tried adjusting my logo size but, that just made my logo smaller because of NodeBB's resizing in the header.
-
-
@NodeHam it probably is now. You can customize the brand logo from the ACP now, and have it different from the site logo.
-
-
@NodeHam oh I see, yeah having a dedicated meta and link tag editor in the ACP would be a nice feature.
Feel free to suggest it in the GitHub repo as a feature request
-
-
@NodeHam just the one here
Build software better, together
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
GitHub (github.com)