inherit
200442
0
Oct 4, 2013 22:09:17 GMT -8
markh7
3
September 2013
markh7
|
Post by markh7 on Sept 25, 2013 20:28:28 GMT -8
Morning All,
I wondered if anyone could advise on an issue that I am experiencing please.
Having used an image file as a header, I am finding that the image is clickable - if one clicks on it, you are taken to the file host, in this case, Photobucket.
Is there anything I can do to stop this from happening?
Is there a better way to display the image?
Many thanks for any assistance.
MH7
|
|
inherit
200442
0
Oct 4, 2013 22:09:17 GMT -8
markh7
3
September 2013
markh7
|
Post by markh7 on Sept 25, 2013 21:04:42 GMT -8
Hi All,
I think I may have found an answer (in case someone else has a similar query):
Instead of using the entire HTML code that was supplied by PhotoBucket, I simply used the code shown below:-
"<center> <img src="IMAGE LOCATION URL"></a> </center>"
Hope this helps!
MH7
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Sept 26, 2013 7:54:06 GMT -8
That HTML is actually incorrect. An img tag is different than an a (anchor) tag, so closing an img tag with an a tag is wrong. The correct way to accomplish this is:
<center><img src="IMAGE_URL_HERE" alt="ALTERNATIVE_TEXT_IN_CASE_THE_IMAGE_DOESN'T_LOAD" /></center> This way the img tag properly closes itself, and as an addition, the alt attribute in the tag will supply alternate text to anyone who isn't able to see the image (image failed to load, using screen readers for the blind, etc.). Most modern browsers will take the code you're using and auto-correct the syntax, but it could cause weird bugs down the road.
Also, if you're just trying to add a logo to your forum, there's a place on the Images tab on the Theme Settings page where you can upload a logo image, and then on the settings page you can choose between using either that image or the name of your forum as the logo.
|
|
inherit
200442
0
Oct 4, 2013 22:09:17 GMT -8
markh7
3
September 2013
markh7
|
Post by markh7 on Oct 4, 2013 22:08:53 GMT -8
Thanks for the tips Tim, I'll be sure to give those a try!
|
|