You'll need to share a bit more than that to help. Could you share the section of your template which renders out the image so we can see where the problem may lie.
Not entirely correct depending on the version of HTML.
HTML 4.01 specifies that a elements may only contain inline elements. A div is a block element, so it may not appear inside an a.
HTML 5 states that the a element "may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links)".
Are you sure that @home.SiteLogo returns the url to the image? When I've tried this before I've had to write a bit more code to get the actual url to set the src value of the img tag.
Does the @home.Url provide a link? Does the "href" attribute have any value? If so is it a valid url?
If the url in the anchor is valid could you then try to disable javascript? If so then you need to figure out where in your javascript an event handler is cancelling the click event on the anchor tag in general.
Hope some of these pointers help.
Edit: Sorry, missed the part about the url having a value in your previous response. I suspect the issue might be related to JavaScript then - Are you working on the site alone or do you collaborate with others?
a tag not clickable in frontend
Hi,
I am trying to get clickable image and text from the masterpage to the frontend.
The a tag is there but when I click it in Edge it does not redirect.
Regards,
Roel
What does you markup look like in the frontend?
Hi Roel,
You'll need to share a bit more than that to help. Could you share the section of your template which renders out the image so we can see where the problem may lie.
Thanks,
Nik
Hi,
May be this is Jquery Version compatibility issue with IE
Please write some section of code and please check your jquery file
Hope this help
Regards,
Samira
Hi all,
Didn't have the time to respond immediately, but I'm here now.
This is the mark-up you asked for:
The a tag above does not render to a hyperlink in the frontend.
Kind regards,
Roel Alblas
A div tag is a block element, so it may not appear inside an a element. w3c standard
Try putting the logo inside another tag, like an img tag and wrap the a tag around it.
Not entirely correct depending on the version of HTML.
HTML 4.01 specifies that a elements may only contain inline elements. A div is a block element, so it may not appear inside an a.
HTML 5 states that the a element "may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links)".
So if using HTML5 it is actually valid markup.
/Bjarne
Hi,
Please look at the following mark up, still no clickable tag.
I just don't see through it ...
Kind regards,
Roel
Looks correct. What gets rendered to the html? Is it only Edge, no other browser?
Are you sure that @home.SiteLogo returns the url to the image? When I've tried this before I've had to write a bit more code to get the actual url to set the src value of the img tag.
Yes an image is showing and the url gives back a /. On Safari the same issue, it's just not clickable.
Hi Roel
Does the @home.Url provide a link? Does the "href" attribute have any value? If so is it a valid url?
If the url in the anchor is valid could you then try to disable javascript? If so then you need to figure out where in your javascript an event handler is cancelling the click event on the anchor tag in general.
Hope some of these pointers help.
Edit: Sorry, missed the part about the url having a value in your previous response. I suspect the issue might be related to JavaScript then - Are you working on the site alone or do you collaborate with others?
/Jan
Hi,
Just to be sure: html.
Html 5:
No javascript errors and other browsers results in the same.
Please take a look at test.litaiji.nl
Ah, so your section element is absolute postitioned and with top 0, so it covers the site logo.
Just set a greater z-index to the header element and you sholud be fine:
is working on a reply...