addthis_WordPress主题二十四十四干扰AddThis欢迎栏

尚楚
2023-12-01

addthis

The AddThis welcome bar will make a empty gap on top of the WordPress webpage with the TwentyFourteen wordpress theme. Is there a fix for it?

AddThis欢迎栏将在带有TwentyFourteen wordpress 主题的WordPress网页顶部空白。 有解决办法吗?

You will find AddThis will add this div to the webpage:

您会发现AddThis会将此div添加到网页中:

<div class="addthis_bar_placeholder"style="height: 46px;"></div>

which cause the problem.

导致问题的原因。

A little trick that works is to set that div’s positions attribute to absolute to avoid it taking the space. To achieve this, add this piece of css to the theme or via WP-insert plugins or other mechanisms:

一个有效的小技巧是将div的positions属性设置为absolute以避免它占用空格 。 为此,请将这部分CSS添加到主题中,或通过WP-insert插件或其他机制添加:

<style type="css/text">
.addthis_bar_placeholder {position:absolute;height:0;}
</style>
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/wordpress-theme-twentyfourteen-interfere-with-addthis-welcome-bar/

addthis

 类似资料: