I am trying to use the separate components of the_custom_logo() function to create my own display for the logo.
Please can someone inform me as to how I can access the url and the image reference separate to each other?
A lot of people have asked how to change the URL which is not the question I require an answer to. I wish to be able to manipulate the code like this (this is a basic example of my plans, so you are able to understand the two components I wish to be able to pull through):
<div class="site-branding"> <a href="<?php get_custom_logo_url(); ?>" class="box-link"> <img src="<?php get_custom_logo_src(); ?>" class="site-logo" alt="Logo"> </a> </div>
I am using a blank theme, with the logo and link already in place in the back-end of Wordpress.
Using this snippet in my header results in the logo and link to display as you would expect:
<?php the_custom_logo(); ?>
Thank you to all contributors, Jason.