You are here:  » how enable a picture in category or brand or merchent


how enable a picture in category or brand or merchent

Submitted by rolli1 on Sun, 2018-07-29 11:38 in

Hi David, I implemented a png in the header.php, but when I click on category in the top, the icon of a picture appears but nor the pic itself. How can I change that.
{link saved}

Regards

Roland

Submitted by support on Mon, 2018-07-30 07:43

Hi Roland,

The src attribute of the PNG is currently a relative URL - i.e. it doesn't begin with "/" which means the browser will look for an "images/" directory relative to the current directory, which means it won't work in the virtually re-written "sub-directories" e.g. /category/ or /brand/ as the browser is looking for /category/images/... which doens't exist.

To correct this, just make it into an absolute URL so that the browser will always look for the /images/ folder in the top level:

src="/images/wordcloud.png"

Cheers,
David.
--
PriceTapestry.com

Submitted by rolli1 on Mon, 2018-07-30 08:41

Hi David,
so simple error….thanks for all.

Best regards

Roland