Logo in footer - need help coding so it links to url

Hi there,

I’ve been sat for an hour trying to figure out where to add the href= line of code to my custom footer content in order to make the logo link to a URL.

Website http://fragilefight.com/

This is the code I have :

<img class="footer-logo mbm" style="width: 150px;"  src="http://fragilefight.com/wp-content/uploads/2018/08/MPA-Signature-White-e1533822258118.png"  alt="MatthewPenn.com" title="logo" />
<p><a class="artist-website" href="https://matthewpenn.com">VISIT MATTHEWPENN.COM</a><p>

Any help much appreciated - I know this is basic coding but I’m still finding my feet. Thanks in advance!

Hi @charlimoore,

Thanks for writing in.

You can wrap your entire content with the link. Example,

<a class="artist-website" href="https://matthewpenn.com"><img class="footer-logo mbm" style="width: 150px;"  src="http://fragilefight.com/wp-content/uploads/2018/08/MPA-Signature-White-e1533822258118.png"  alt="MatthewPenn.com" title="logo" />
<p>VISIT MATTHEWPENN.COM</p></a>

That should link to it.

Thanks!

Brilliant thanks, works perfectly.

Glad we were able to help :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.