我已经接管了一个必须在明天之前上线的网站,但是某个地方出现了错误,导致无法点击社交媒体页脚中的链接。这是一个自定义主题的工作,我无法访问原始开发人员。
Developer Tools View 显示链接正在从函数传回,但我似乎无法找到错误所在。
站点链接是:http://developersinaction.com/projects/g1/thai-express
页脚代码是:
<?php global $woocommerce, $thaiexpress_option; ?>
<div class="thaiexpress__footer-wrapper">
<div class="thaiexpress__footer-border"></div>
<?php get_template_part( 'instagram-feed' ); ?>
<div class="thaiexpress__footer-details">
<div class="container">
<?php
$socials = $thaiexpress_option['thaiexpress__social_media_links'];
if ( (array) $socials && isset($socials) ) : ?>
<div class="thaiexpress__footer-social-lins">
<ul>
<?php foreach ( (array) $socials as $key => $entry ) :
if ( !empty( $entry['url'] ) ) { ?>
<li><a target="_blank" href="<?php echo esc_url( $entry['url'] ) ?>"><?php echo (!empty($entry['thumb'])) ? '<img src="'.$entry['thumb'].'">' : ''; ?> <?php echo $entry['title']; ?></a></li>
<?php } endforeach; ?>
</ul>
</div>
<?php endif; ?>
<div class="thaiexpress__footer-subscription-form">
<?php echo do_shortcode( '[contact-form-7 id="97" title="Footer Form"]' ); ?>
</div>
</div>
</div>
<div class="thaiexpress__information-wrapper">
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-8 col-xs-12">
<nav class="thaiexpress__footer-nav">
<?php wp_nav_menu( array( 'theme_location' => 'footer_nav','menu_id' => 'primary_nav' ) ); ?>
</nav>
</div>
<div class="col-md-4 col-sm-4 col-xs-12 thaiExpress__footer_nav_right">
<?php echo empty($thaiexpress_option['footer-credit']) ? "" : '<p>'. $thaiexpress_option['footer-credit'] .'</p>'; ?>
</div>
</div>
<div class="row">
<div class="col-sm-12 thaiExpress__footer_copyright">
<?php echo empty($thaiexpress_option['footer-copyright']) ? "" : '<p>'. $thaiexpress_option['footer-copyright'] .'</p>'; ?>
</div>
</div>
</div>
</div>
</div> <!-- // end of .thaiexpress__footer-wrapper -->
我敢肯定这很明显,但我的眼睛现在严重失明了!非常感谢任何帮助。
最佳答案
您在覆盖社交链接的社交页脚上方有一个 div。
<div class="thaiexpress__testimonial-slide-wrap">...</div>
那个 div 有 margin-bottom:-202px。 删除底部边距并使底部填充更小。
然后您会看到之前隐藏的#THAIEXPRESS_UK,但也许这是一个奖励?
关于php - WordPress 网站页脚中的链接不可点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49759809/