[wordpress插件] Display Featured Image for Genesis显示创世纪的特色图片

wordpress 插件 文章 2020-04-19 10:10 763 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

This plugin takes a different approach to how we use and display featured images for posts and pages.

此插件采用了不同的方法来使用和显示帖子和页面的特色图片。

Instead of simply reusing an image which already exists in the post/page content, the plugin anticipates that you will want to use lovely large images for your featured images, but to do so intelligently.

该插件期望您将希望使用可爱的大图像作为特色图像,而不是简单地重复使用帖子/页面内容中已经存在的图像,而是明智地使用。

Depending on what you upload, the plugin will:

根据您上传的内容,插件将:

    • display the image as a banner (screen width) image if the image is wider than your site’s Large Media Setting.
    • 如果图像的宽度大于您网站的大型媒体设置,则

    • 将图像显示为横幅(屏幕宽度)图像。

    • display the image above your post/page content, centered and up to the width of the content, if your image is larger than your Medium Media Setting, and less than or equal to your Large Media Setting.
    • 如果图像大于“中型媒体设置”且小于或等于“大型媒体设置”,则将图像显示在帖子/页面内容上方,并居中且直至内容的宽度。

    • display nothing if your featured image width is less than or equal to your Medium Media Setting.
    • 如果您的特色图片宽度小于或等于“中型媒体设置”,则

    • 不显示任何内容。

    • display a default featured image as a banner image if one is uploaded.
    • 如果上传了默认特色图片作为横幅图像。

    More words at my site.

    我的网站上更多的单词。

    Note: although this plugin requires the Genesis Framework by StudioPress or child themes, it is not an official

    注意:尽管此插件需要StudioPress的 Genesis Framework 或子主题,但它不是官方的

    plugin for this framework and is neither endorsed nor supported by StudioPress.

    此框架的插件,StudioPress既不认可也不支持。

    An Image for Every Page

    每页的图像

    Display Featured Image for Genesis allows you to select a default, or fallback, Featured Image, which will be used if a post/page does not have a Featured Image set, or if the post/

    显示创世纪的特色图片,您可以选择默认或备用的特色图片,如果帖子/页面未设置特色图片,或者帖子/

    page's Featured Image is too small (smaller than your medium image setting), and on archive and taxonomy pages.

    页面的“特色图片”太小(小于中等图像设置),并且在存档页面和分类页面上。

    You may set the Default Featured Image under Appearance > Display Featured Image Settings.

    您可以在外观>显示特色图片设置下设置默认特色图片。

    You may set a Featured Image for each term within a taxonomy (categories, tags, and any taxonomy for custom post types).

    您可以为分类法中的每个术语(分类,标签和自定义帖子类型的任何分类法)设置“特色图片”。

    This image will be used on taxonomy archives, and as a fallback image for posts within that taxonomy if no featured image exists (or if the featured image is too small).

    如果没有特色图片(或特色图片太小),则该图片将用于分类档案,并作为该分类中帖子的后备图片。

    If a post is assigned to multiple terms and has no featured image of its own, the most used term which has a featured image assigned will be the one used.

    如果帖子被分配了多个术语并且没有自己的特色图像,则分配了特色图像的最常用术语将是使用的那个术语。

    If your site uses Custom Post Types, you can set a Featured Image for each Post Type on the main Display Featured Image for Genesis settings page.

    如果您的站点使用“自定义帖子类型”,则可以在“显示创世记的特色图像”主设置页面上为每种帖子类型设置“特色图像”。

    If your single post within this type does not have a featured image, the Post Type Featured Image will be used as a fallback.

    如果您在此类型中的单个帖子没有特色图片,则该帖子类型的特色图片将用作后备广告。

    Add Your Featured Image to Your RSS Feed

    将特色图片添加到RSS Feed

    Now you can add the Featured Image from each post to your RSS feed.

    现在,您可以将每个帖子的精选图片添加到RSS feed。

    This is an optional setting and applied intelligently:

    这是一个可选设置,可以智能地应用:

      • if your feed is set to output the full text, the Featured Image will be added to the beginning of your post content as a full width image.
      • 如果您的供稿设置为输出全文,则“特色图片”将作为全宽图片添加到帖子内容的开头。

      • if your feed is set to output only the summary of your content, the Featured image will be added to the beginning of your summary as a thumbnail, aligned to the left.
      • 如果您的供稿设置为仅输出内容摘要,则精选图片将作为缩略图添加到摘要的开头,并与左侧对齐。

      You can check/change your feed settings on your site’s Settings > Reading page.

      您可以在网站的“设置”>“阅读”页面上检查/更改Feed设置。

      If you are already inserting your Featured Image into your feed through another function or plugin, you’ll want to remove that before activating this feature;

      如果您已经通过其他功能或插件将“特色图片”插入到Feed中,则需要在激活此功能之前将其删除;

      otherwise you will have two copies of the image added to your feed!

      否则,您会将图像的两个副本添加到Feed中!

      If you are using Send Images to RSS, don’t worry about it.

      如果您使用的是“将图像发送到RSS”,请不必担心。

      I’ve made sure these two plugins coexist happily.

      我确保这两个插件可以愉快地共存。

      Simple Styling

      简单的样式

      Display Featured Image for Genesis has some styling built in but I have intentionally tried to keep it minimal.

      显示创世纪特色图片内置了一些样式,但我有意尝试将其最小化。

      All styling is for the banner image options, as the large options seem pretty straightforward.

      所有样式均用于横幅图像选项,因为大型选项看起来非常简单。

      Stying for titles are largely inherited from your theme–for example, the title will use the same size and font for your page titles, whether you are using a Featured Image or not.

      标题的样式很大程度上继承自您的主题,例如,无论您是否使用“特色图片”,标题都将使用相同的大小和字体作为页面标题。

      Some styles you can incorporate into your own theme:

      您可以将某些样式合并到自己的主题中:

        • .has-leader applies to any page using a leader/banner image.

        • .has-leader 适用于使用领导者/横幅图像的任何页面。

          Applies to the whole page.

        • 适用于整个页面。

        • .big-leader the container which holds the leader/banner image and the post/page Title and excerpt or description.
        • .big-leader 用于保存领导者/横幅图像以及帖子/页面标题和摘录或描述的容器。

        • .featured-image-overlay style appended to the post/page title if Move Excerpts option is not selected (default).
        • 如果未选择“移动摘录”选项 (默认值),则在帖子/页面标题后附加

        • .featured-image-overlay 样式。

        • .excerpt (for single posts/pages) and .archive-description (for archives) are styled as a unit.

        • .excerpt (用于单个帖子/页面)和 .archive-description (用于档案)设置为一个单元。

          These are the containers for the post/page/archive/taxonomy title and description if the Move Excerpts option is selected.

        • 如果选择了“移动摘录”选项 ,则这些是帖子/页面/档案/分类法标题和描述的容器。

        • .featured is appended to the large image output directly above the post/page content.
        • .featured 被附加到帖子/页面内容正上方的大图像输出中。

安装步骤

    1. Upload the entire display-featured-image-genesis folder to your /wp-content/plugins directory.
    2. 将整个 display-featured-image-genesis 文件夹上传到您的 / wp-content / plugins 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Optionally, visit the Settings > Media page to change the default behavior of the plugin.
    6. (可选)访问“设置”>“媒体”页面以更改插件的默认行为。

下载地址
https://downloads.wordpress.org/plugin/display-featured-image-genesis.3.2.0.zip
-EOF-

AI助手支持GPT4.0