How to remove the circular reference from the logo?

Good afternoon.

The problem:
You want to remove the circular reference from the FrontPage, which wormed on the logo, so much so that on other pages she left.

How can you explain this code?

<?php if ( yp_opts('general_logo') && yp_opts('navigation_logo') ): ?>
 <a class="navbar-brand" href="<?php echo esc_url(home_url()); ?>">
 <img src="<?php echo esc_url(yp_opts('general_logo')); ?>" alt-title>
</a>
 <?php endif; ?>

Thanks in advance!
July 9th 19 at 10:24
1 answer
July 9th 19 at 10:26
<?php if ( yp_opts('general_logo') && yp_opts('navigation_logo') ): ?>
 <?php if ($_SERVER{'REQUEST_URI'} == "/") {?>
 <img src="<?php echo esc_url(yp_opts('general_logo')); ?>" alt-title>
<? } else { ?> 
 <a class="navbar-brand" href="<?php echo esc_url(home_url()); ?>">
 <img src="<?php echo esc_url(yp_opts('general_logo')); ?>" alt-title>
</a>
<? } ?>
<?php endif; ?>
Thank you. - Neil.Reilly11 commented on July 9th 19 at 10:29

Find more questions by tags PHPWordPress