Please help me improve my snippet.

Hi folks, i managed to solve a little problem i had myself by reading and modifying. My code works but as a novice i would like to ask if you could advise me of a cleaner way to achieve the same thing. Things look a bit messy to me, so i’m sure there is probably a better way to do this.

Any advice or direction will be greatly appreciated.

[php] <?php
$custom_logo_id = get_theme_mod(‘custom_logo’);
$logo = wp_get_attachment_image_src($custom_logo_id, ‘full’);
if (has_custom_logo()) {
echo ‘’;
} else { ?>

<?php }
?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service