我有一个问题。默认情况下,将鼠标悬停在博客文章缩略图上时,我会获得标题说明,但是我不希望在悬停时有任何标题说明
答案 0 :(得分:0)
将此脚本添加到footer.php
<script>
jQuery('a["title"]').on('mouseenter', function(e){
e.preventDefault();
});
</script>
OR
您需要从所有布局中删除标题标签 从路径下方
gridlove\template-parts\cover\layout-1.php
gridlove\template-parts\cover\layout-2.php
gridlove\template-parts\cover\layout-3.php
gridlove\template-parts\cover\layout-4.php
gridlove\template-parts\layouts\content-a.php
gridlove\template-parts\layouts\content-b.php
gridlove\template-parts\layouts\content-c.php
gridlove\template-parts\layouts\content-d.php
<?php if( $fimg = gridlove_get_featured_image('cover') ) : ?>
<a href="<?php echo esc_url( get_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" class="gridlove-cover">
<?php echo $fimg; ?>
<span class="gridlove-hidden-overlay"></span>
</a>
<?php endif; ?>