[doc] how to change logo using css
authorRabah Meradi <rabah.meradi@logilab.fr>
Wed, 03 Jun 2015 17:15:08 +0200
changeset 10379 a1cc6788e9de
parent 10378 ad0cea3ab218
child 10380 bfd93cbd34a4
[doc] how to change logo using css
doc/book/en/annexes/faq.rst
--- a/doc/book/en/annexes/faq.rst	Wed Jun 03 17:17:29 2015 +0200
+++ b/doc/book/en/annexes/faq.rst	Wed Jun 03 17:15:08 2015 +0200
@@ -104,21 +104,17 @@
 How to change the instance logo ?
 ---------------------------------
 
-There are two ways of changing the logo.
-
-1. The easiest way to use a different logo is to replace the existing
-   ``logo.png`` in ``myapp/data`` by your prefered icon and refresh.
-   By default all instance will look for a ``logo.png`` to be
-   rendered in the logo section.
+The logo is managed by css. You must provide a custom css that will contain
+the code below: 
 
-   .. image:: ../images/lax-book_06-main-template-logo_en.png
+::
+   
+     #logo {
+        background-image: url("logo.jpg");
+     }
 
-2. In your cube directory, you can specify which file to use for the logo.
-   This is configurable in ``mycube/uiprops.py``: ::
 
-     LOGO = data('mylogo.gif')
-
-   ``mylogo.gif`` is in ``mycube/data`` directory.
+``logo.jpg`` is in ``mycube/data`` directory.
 
 How to create an anonymous user ?
 ---------------------------------