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.

White labelling

  • #8805
    Avatar photo[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

    #8824
    Avatar photo[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.

    #9560
    Avatar photo[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

    #9567
    Avatar photo[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.

    #9569
    Avatar photo[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.

    #9575
    Avatar photo[anonymous]
    [anonymous] wrote:

    @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.

    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

    #9595
    Avatar photo[anonymous]

    it seems that {{{publiiHead}}} contains the Opengraph tags, so it’s not that easy to just remove that

    #9681
    Avatar photo[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

    #9693
    Avatar photo[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 = {“

    #10709
    Avatar photoBob

    You can remove the metatag generator using the Advanced Head Tag Manager plugin.

    #10710
    Avatar photo[anonymous]

    Hello Bob,

    Thanks for the feedback, I had indeed seen your recent update.

    #10711
    Avatar photo[anonymous]
    This reply has been marked as private.