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

时间:2018-09-20 05:42:23

标签: html css wordpress anchor title

我有一个问题。默认情况下,将鼠标悬停在博客文章缩略图上时,我会获得标题说明,但是我不希望在悬停时有任何标题说明

enter image description here

1 个答案:

答案 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; ?>