writing image

Post Reply
arfa
Ssr. Bludit
Posts: 10
Joined: Tue Jul 04, 2017 4:31 am

Working on a plugin. If I code an image - like this

Code: Select all

<img class="zxc" src="qqqqq.png">
it is written to the page but is not clickable. Using debugger I see it is effectively buried under the body. If i use:

Code: Select all

<div  class="zxc"><img src="qqqqq.png"></div>
it works just fine.

I can't figure out why.
Any suggestions?
arfa
Ssr. Bludit
Posts: 10
Joined: Tue Jul 04, 2017 4:31 am

Still getting a clear sense of the code flow. Bear with me :roll:

My plugin uses an image - position:absolute - at page top-right.
If I shift - Theme::plugins('siteBodyBegin') - after the header it works fine. BUT... this breaks the bludit template. Ouch...

I will change my plugin concept slightly.
thx
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
image clickable ?

you want something like this ?

Code: Select all

<a href="https://google.com"><img src="..."></a>
Post Reply