Forum

Thread tagged as: Problem, Error, Field-Types

Inserting perch content inside SRC issue

Hi there,

I'm having issue adding a perch content tag inside of my logo src

<img src="<perch:content id="logo" type="image" label="Logo" />" class="image-small"/>

https://www.jayniverse.co.uk/

Kind regards, James

James Paylor

James Paylor 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

What issue are you having?

If you visit the link as you can see the logo at the top is not displaying properly... the code I used was

<img src="<perch:content id="logo" type="image" label="Logo" />" class="image-small"/>

but as you can see it doesn't work for some reason??

[IMG]https://i62.tinypic.com/2l91tlc.png[/IMG]

[IMG]https://i59.tinypic.com/1iewhx.png[/IMG]

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you adding that tag to a template? It can't go directly in your page - it's a template tag.