如何在Wordpress中为所有帖子设置锚标签的默认标题



我有一个问题。默认情况下,将鼠标悬停在博客文章缩略图上时,我正在获取标题描述,但我不希望悬停时有任何标题描述

在此处输入图像描述

在页脚中添加此脚本.php

<script>
jQuery('a["title"]').on('mouseenter', function(e){
e.preventDefault();
});
</script>

您需要从所有布局中删除标题标签 从路径下方

gridlovetemplate-partscoverlayout-1.php

gridlovetemplate-partscoverlayout-2.php

gridlovetemplate-partscoverlayout-3.php

gridlovetemplate-partscoverlayout-4.php

gridlovetemplate-partslayoutscontent-a.php

gridlovetemplate-partslayoutscontent-b.php

gridlovetemplate-partslayoutscontent-c.php

gridlovetemplate-partslayoutscontent-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; ?>  

最新更新