I'm trying to figure out how to hide the "zoom to" link that comes by default with the infoTemplate.
any idea?
Solved! Go to Solution.
I would be cautious of the sledgehammer approach of a css rule on a links. I know I like to sometimes custom format infoWindow content and include hyperlinks. Using your CSS rule, that would remove those links (this might also remove hyperlinks from any data fields with hyperlinks too).
It's aways best to see if ESRI has established a CSS class and then just target that class. In this case, there is one to target:
.esriPopup .action.zoomTo { display: none; }
Hi Isra,
It is discussed here..
Thanks & Regards,
Vara Prasad.
add this to your css
.esriPopup a { display:none; }
I would be cautious of the sledgehammer approach of a css rule on a links. I know I like to sometimes custom format infoWindow content and include hyperlinks. Using your CSS rule, that would remove those links (this might also remove hyperlinks from any data fields with hyperlinks too).
It's aways best to see if ESRI has established a CSS class and then just target that class. In this case, there is one to target:
.esriPopup .action.zoomTo { display: none; }
Thank you Steve. You are right, Now It's working perfectly.