Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End SVG Anchor Tag PHP Function Animation Transition Madness Reply To: SVG Anchor Tag PHP Function Animation Transition Madness

#169813
bmoneruiux
Participant

Ok tried this:

<div id="logo">
    <a xlink:href="<?php echo home_url(); ?>">
        <svg>
            ...
        </svg>
    </a>
</div><!-- end of #logo -->

And although the animation works, the logo is no longer hyperlinked.

EDIT: Dammit….wait. I might be an idiot…

EDIT pt2: Ok so I forgot to place the anchor inside of the svg tag, however I was right. When I tried it this way last time, the link came back…but now the transition of the svg background isn’t smooth again.