【问题标题】:Facebook Comments section gets truncatedFacebook评论部分被截断
【发布时间】:2014-05-17 18:11:33
【问题描述】:

我在我网站的这个页面上遇到了 facebook cmets 的问题:http://www.twisted-perfectionism.com/social-media-network-comparison/

评论部分被截断。您只能看到 1 条评论和 3/4。下面还有更多评论,但没有出现。

这可能是什么原因?没看懂:(

请帮忙!

这是来自 single.php 的代码:

    <?php get_header(); ?>

    <div id="page-<?php the_ID(); ?>" class="panel box">

    <div class="in">

        <?php while ( have_posts() ) : the_post();?>

            <?php

            $format = get_post_format();
            get_template_part( "formatz/".$format );

            if($format == "")
            get_template_part( "formatz/standard" );
            echo do_shortcode('[shareaholic app="share_buttons" id="xxx"]');
            do_action('seo_facebook_comments');         
            ?>

        <?php endwhile; ?> 

    </div>

</div>

<?php get_footer(); ?>

【问题讨论】:

    标签: php jquery facebook wordpress plugins


    【解决方案1】:

    问题是在 wp-content/themes/selfless/style.css 中 style.css 文件的第 159 行设置了 max-height: 206px; 样式。这可以防止 Facebook cmets 部分高于 206px,从而隐藏低于此高度的任何溢出。删除此行将显示您的所有 cmets。

    【讨论】:

    • 非常感谢!有效!我希望删除它不会破坏其他任何东西:)
    • 请看我的另一个问题。我想你可以帮助我。将不胜感激!谢谢 stackoverflow.com/questions/23706373/…
    猜你喜欢
    • 2011-09-03
    • 1970-01-01
    • 1970-01-01
    • 2011-09-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-27
    • 1970-01-01
    相关资源
    最近更新 更多