如何为所有人设置Wordpress中Anchor Tag的默认标题post
How to set the default title of Anchor Tag in Wordpress for all post
我有一个问题。默认情况下,悬停在博客 post 缩略图上时,我得到了标题描述,但我不想在悬停时显示任何标题描述
enter image description here
在 footer.php
中添加此脚本
<script>
jQuery('a["title"]').on('mouseenter', function(e){
e.preventDefault();
});
</script>
或
您需要从所有布局中删除标题标签
从路径下方
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; ?>
我有一个问题。默认情况下,悬停在博客 post 缩略图上时,我得到了标题描述,但我不想在悬停时显示任何标题描述
enter image description here
在 footer.php
中添加此脚本 <script>
jQuery('a["title"]').on('mouseenter', function(e){
e.preventDefault();
});
</script>
或
您需要从所有布局中删除标题标签 从路径下方
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; ?>