White labelling
-
November 23, 2022 at 1:56 pm #8805[anonymous]
A client does not want to see that it is created with Publii in the code for one of his site:
<meta name=”generator” content=”Publii Open-Source CMS for Static Site”>
To try to solve this problem I went to head.hbs and removed:
{{{publiiHead}}}The problem is that it also removes all “custom code” for the header.
How can I just remove the “generate by Publii”?
Thanks in advance
November 26, 2022 at 3:36 pm #8824[anonymous]Hi,
At this moment the described way is probably the only solution. Anyway, it is not a big issue, because Publii is not a server-side CMS, so in my opinion, such information available in the code does not cause any security risk.
March 15, 2023 at 10:56 am #9560[anonymous]Hi, thank you for your feedback. 🙂
Yes totally, but it’s a request I have.
Maybe it’s easy to create a plugin to have a white label CMS?
Or, separate the “custom header” and “generate by Publii” during the generation of the site by Publii?Thank you again
March 15, 2023 at 5:03 pm #9567[anonymous]@Andy
While the Publii CMS is open source, the developers must have put in hundreds of thousands of hours developing it, and many more to keep maintaining it, updating, providing new themes, plugins, fixing issues, writing documentation, etc. So the small entry visible only in the code of <meta name=”generator” content=”Publii Open-Source CMS for Static Site”> for me is not a problem. It’s nice to see them get some recognition for creating such a fantastic product and range of add-ons.
March 15, 2023 at 5:38 pm #9569[anonymous]What custom code does deleting {{{publiiHead}}} remove?
Just curious because what I put into Tools & Plugins > Custom HTML > Head still appears for me even though I deleted the generator bit.
March 16, 2023 at 6:15 am #9575[anonymous][anonymous] wrote:While the Publii CMS is open source, the developers must have put in hundreds of thousands of hours developing it, and many more to keep maintaining it, updating, providing new themes, plugins, fixing issues, writing documentation, etc. So the small entry visible only in the code of <meta name=”generator” content=”Publii Open-Source CMS for Static Site”> for me is not a problem. It’s nice to see them get some recognition for creating such a fantastic product and range of add-ons.
This is actually not a “problem” but a question I received from someone for whom I set up a site. As I am more active on this forum than him, I asked the question.
[anonymous] wrote:What custom code does deleting {{{publiiHead}}} remove?
Just curious because what I put into Tools & Plugins > Custom HTML > Head still appears for me even though I deleted the generator bit.
You are right ! I tried again today and indeed my code in the “head” part remains now…
My question dates from an earlier version (as Google analytics was put manually in the header and not in a plugin) so I don’t know if anything has been changed since then and what {{{publiiHead}}} really contains
Maybe @Tomasz Dziuda can enlighten me but Ok, otherwise, the subject is closed
March 17, 2023 at 8:47 am #9595[anonymous]it seems that {{{publiiHead}}} contains the Opengraph tags, so it’s not that easy to just remove that
March 21, 2023 at 7:29 pm #9681[anonymous]While it might be a licence infringement to do that kind of practice
Override the theme
Preview or generate the website
Replace the {{{publiiHead}}} of your Override theme by
Copying & Pasting the header part of the HTML generated website minus the line you don’t like
March 22, 2023 at 11:48 am #9693[anonymous]So by overriding your theme, you could remove the publiiHead call
then add a js like this https://getpublii.com/dev/js-helper/
with your own version of that file: https://github.com/GetPublii/Publii/blob/master/app/back-end/modules/render-html/handlebars/helpers/publii-head.js
but then after that you will still see Publii mark in the css code and cookies …
such as an example: “<span class=”html-tag”><script></span> window.publiiThemeMenuConfig = {“
October 5, 2023 at 10:19 am #10709BobYou can remove the metatag generator using the Advanced Head Tag Manager plugin.
October 5, 2023 at 10:48 am #10710[anonymous]Hello Bob,
Thanks for the feedback, I had indeed seen your recent update.
October 5, 2023 at 10:50 am #10711[anonymous]This reply has been marked as private.