White labelling
- This topic has 8 replies, 5 voices, and was last updated 6 months, 2 weeks ago by .
-
AuthorPosts
-
November 23, 2022 at 1:56 pm #8805
Andy
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 #8824Tomasz Dziuda
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.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 15, 2023 at 10:56 am #9560Andy
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 #9567itips3727
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 #9569privii
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 #9575Andy
itips3727 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.
privii 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 #9595Andy
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 #9681JOduMonT
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 #9693JOduMonT
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 = {“
-
AuthorPosts
- You must be logged in to reply to this topic.