Sign in

White labelling

  • This topic has 8 replies, 5 voices, and was last updated 6 months, 2 weeks ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #8805
    Avatar photoAndy

     

    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 photoTomasz 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!

    #9560
    Avatar photoAndy

    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 photoitips3727

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

    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 photoAndy
    itips3727 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.

     

    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

    #9595
    Avatar photoAndy

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

    #9681
    Avatar photoJOduMonT

    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 photoJOduMonT

    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 = {“

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.