Page 1 of 1

custom logo on logo block problem

Posted: Wed Nov 29, 2017 5:00 am
by pdurand
custom logo size...
I am trying to use the logo block on my template.
I have resized the logo to 120 pixels by 65 pixels.
However the logo does not appear on the logo block.
What am I missing?

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 6:30 am
by John B
Pierre, that's a difficult question to answer if you don't give some sort of description or link.

On my site I use the logo block to post images which I change from time to time. If I remember correctly the images must be in a .bmp format and, of course, named logo.bmp.

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 10:14 am
by Jachym
Hi,
the format of the image is irrelevant (can be jpg, png, gif etc.). Also the dimensions should be scaled automatically, if the image does not show up at all then you must have made a mistake in the URL, but as John said, we cannot help you without a link to the problematic page

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 4:25 pm
by pdurand
The image is located in the template space in a directory named imgs.
I tried both these paths in the logo block settings:

/var/www/html/template/imgs/amasrc.png
/template/imgs/amasrc.png

I will try renaming the file to logo.png

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 4:31 pm
by pdurand
renamed the file to logo.png in the above paths and no success..

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 5:24 pm
by Jachym
Are you running it locally? Otherwise please post a link, I really cant tell what is wrong if I dont see it.

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 5:41 pm
by pdurand
I do not understand what running locally means.
I am doing all admin and tests from a computer on another network.

The website address is:
http://amasrc.does-it.net
The logo block in on the right column, last entry.

The image for the logo is stored on the Meteotemplate server in the following directory:
/var/www/html/template/imgs
the URL settings in the logo block is:
/var/www/html/template/imgs/logo.png

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 5:45 pm
by Jachym
HI,
ok, the link is what we needed....

you didnt enter any name of the image, in the block settings you must provide also the name of the image, the full path to it, like ......image.jpg, otherwise the template has no idea what you are trying to load.

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 6:01 pm
by pdurand
I did enter the name of the image.
This is what I entered:

the URL settings in the logo block is:
/var/www/html/template/imgs/logo.png

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 6:37 pm
by Jachym
Hi,
no the image must be inside
homepage/blocks/logo/
and then you specify the name accordingly

Eg:
Image is in homepage/blocks/logo/logo.png

In block settings you put:
logo.png

Re: custom logo on logo block problem

Posted: Wed Nov 29, 2017 7:19 pm
by pdurand
It worked.
The Logo block settings indicates Path as entry.

Thanks, Jachym