Search code examples
sensenet

How to replace sensenet logo?


I have to make some changes on the ui. Now I try to replace the built-in sensenet logo, but I am stucked. I tried to change /Root/Global/images/sensenetlogo.png but there is no option to replace it.

1

2


Solution

  • The logo is defined in a css file (/Root/Skins/sensenet/styles/skin.css)

    Search for this part:

    .sn-layout-inter-index .sn-slogen {
        position: absolute;
        left: 5px;
        top: 13px;
        font-size: 16px;
        color: #fff;
        font-weight: normal;
        background: url(/Root/Global/images/sensenetlogo.png) no-repeat;
        padding-left: 150px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    

    and change the background-image url. This will will replace the logo on the homepage.

    Replacing the logo on other subpages change the logo url the same way at

    .sn-layout-intra .sn-layout-head .sn-logo, .sn-layout-inter .sn-layout-head .sn-logo, .sn-layout1 .sn-layout-head .sn-logo {
    ...
    }
    

    If you installed sensenet from source make sure that you changed the .css file both in the file system and through sensenet's admin surface (Content Explorer).