【问题标题】:Add Feedly featured image class "webfeedsFeaturedVisual" to featured images in Wordpress将 Feedly 特色图像类“webfeedsFeaturedVisual”添加到 Wordpress 中的特色图像
【发布时间】:2016-02-11 12:50:18
【问题描述】:

我想自定义 Feedly 呈现我网站的 RSS Feed (here) 的方式,实际上显示效果很差。

我跟着their instructions 添加了所有建议的标记;通过这种方式,我设法获得了正确的标题、描述、图标、徽标、封面图片、强调色和其他所有内容。

但是,在上述指南中,据说为了让 Feedly 选择正确的特色图片,您必须添加 webfeedsFeaturedVisual 类名。我怎样才能对我所有的特色图片做到这一点?

提前谢谢你。问候。

【问题讨论】:

    标签: php wordpress rss feed feedly


    【解决方案1】:

    如果您希望为您的特色图片添加一个类:

    编辑引用以调用模板中的特色图片:

    <?php the_post_thumbnail('post-thumbnail', array( 'class'   => "zoomer-class attachment-post-thumbnail")); ?>
    

    zoomer-class 更改为您自己的类名。

    更多信息在这里: https://wordpress.org/support/topic/featured-image-add-image-class?replies=4

    希望对你有帮助!

    【讨论】:

    • 谢谢@user45250。在哪个模板中?单.php?
    • 这取决于您在哪里展示您的特色图片。如果您在帖子中调用它,则编辑“singe.php”,而“page.php”编辑页面模板。
    • 如果您不确定要编辑哪个文件,请使用第二个选项将过滤器添加到您的 function.php 按照我提供的链接中的说明进行操作。
    • 谢谢。第二个选项奏效了。现在我的特色图片有那个类,但不幸的是它没有按预期工作。 Feedly 仍然无法识别它们。
    【解决方案2】:

    实际上我设法让 Feedly 通过plugin 显示特色图片。

    感谢您的帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-22
      • 1970-01-01
      • 2013-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-25
      • 2015-06-26
      相关资源
      最近更新 更多