i have this function <?php the\_custom\_logo(); thats showing logo but i want the logo to be clickable and linked to home page i tried adding a tag like <a><?php the\_custom\_logo(); </a> but its not working
Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
As your opening A tag
<a href=”/”><?php the_custom_logo();?></a>
As per other answer, but you need to close PHP before the <a> as well…
<?php // all your code until logo…
?><a href=”/”><?php the_custom_logo();?></a><?php
// the rest of your code.